Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Mark External Links - any Ideas?

help-wanted

Solved by Gravfan View solution

Started by Gravfan 3 years ago · 1 replies · 491 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 Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago