Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Mark External Links - any Ideas?

help-wanted

Solved by Gravfan View solution

Started by Gravfan 3 years ago · 1 replies · 943 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 stell, 7 days ago
4 235 5 days ago
Support · by gravinator, 1 month ago
4 440 5 days ago
Support · by Gravver, 2 weeks ago
6 278 1 week ago
Support · by Marcel, 4 weeks ago
2 337 1 week ago
Support · by blu3prince, 2 weeks ago
1 251 2 weeks ago