nofollow for all link

13 views
Skip to first unread message

Maciej Kusz

unread,
Nov 4, 2021, 6:18:51 PM11/4/21
to nikola-discuss
How to achieve the addition of a nofollow attribute for all links? Is there any way to modify a theme files to achieve it or is there a need to create some plugin for that purpose?

Chris Warrick

unread,
Nov 7, 2021, 5:26:50 PM11/7/21
to nikola-...@googlegroups.com
On Thu, 4 Nov 2021 at 23:18, Maciej Kusz <macie...@gmail.com> wrote:
>
> How to achieve the addition of a nofollow attribute for all links? Is there any way to modify a theme files to achieve it or is there a need to create some plugin for that purpose?

Templates nor any Nikola configuration won’t do. If your compiler of
choice (i.e. reST/docutils, python-markdown, whatever) has some way of
generating output with all links set to `nofollow`, you could use
that. Otherwise, you’d need to write your own filter (usable with the
FILTERS setting in conf.py).

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Maciej Kusz

unread,
Nov 8, 2021, 6:31:24 AM11/8/21
to nikola-discuss
Thanks, I will look into that.
Reply all
Reply to author
Forward
0 new messages