Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Option to specify rel="nofollow" in links #260

Description

@yandodov

This was briefly mentioned in #92 here, but I decided to open a separate issue.

We need to put rel="nofollow" on all external links in our articles for better SEO. Currently, Kirby only adds rel="noopener noreferrer".

What's worse is that even if I add nofollow manually in the TXT file, it gets removed when I save the article later in the panel.


Currently, I add nofollow with a custom paragraph.php snippet:

<p><?= str_replace('noopener noreferrer', 'noopener noreferrer nofollow', $content) ?></p>

...but it would be nice to be able to select whether you want nofollow or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions