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 3 years ago · 1 replies · 1108 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 Anna, 4 days ago
1 96 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago