Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Mark External Links - any Ideas?

help-wanted

Solved by Gravfan View solution

Started by Gravfan 3 years ago · 1 replies · 842 views
3 years ago

I am newbie to grav ( it really rocks ! ) and not a web developer, but have decades of programming experience.

On my Grav-Homepage, I want to mark external links as such, for legal reasons.
And I want it automatically to happen, to avoid forgetting it.
It should be like adding a little Icon and style to a link, to clearly show that it is an external link,
but ONLY if it is external, i.e. if it has "http://" or "https://" in it.

Maybe there is a way to "hooK' into the markdown engine/parser, or a method to "filter" markdown content dynamically ( to add an icon before https:// ).

Or maybe it can be done solely with css, or twig ...

Any ideas ?

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 152 1 day ago
Support · by Rick Beebe, 6 days ago
2 112 3 days ago
Support · by blu3prince, 3 days ago
0 61 3 days ago
Support · by alex, 5 days ago
2 100 4 days ago
Support · by Marcel, 2 weeks ago
1 151 4 days ago