Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Mark External Links - any Ideas?

help-wanted

Solved by Gravfan View solution

Started by Gravfan 4 years ago · 1 replies · 1186 views
4 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 TomW, 2 weeks ago
8 225 8 hours ago
Support · by alex, 2 months ago
8 666 23 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago