From c2c11453f02df72ccdbb7fd1ba5706c5359c696d Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 15 Jan 2019 01:56:34 +0100 Subject: [PATCH] add rel="noreferrer" to external links (#1577) --- themes/grav/templates/partials/base-root.html.twig | 2 +- themes/grav/templates/partials/plugin-data.html.twig | 10 +++++----- .../grav/templates/partials/themes-details.html.twig | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/themes/grav/templates/partials/base-root.html.twig b/themes/grav/templates/partials/base-root.html.twig index d0b8f595..d697050e 100644 --- a/themes/grav/templates/partials/base-root.html.twig +++ b/themes/grav/templates/partials/base-root.html.twig @@ -62,7 +62,7 @@ {%- block content %}{% endblock -%} {% if config.plugins.admin.show_github_msg %} -
{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}
+
{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}
{% endif %} {% block content_bottom %}{% endblock %} diff --git a/themes/grav/templates/partials/plugin-data.html.twig b/themes/grav/templates/partials/plugin-data.html.twig index 9fa320d7..751a6355 100644 --- a/themes/grav/templates/partials/plugin-data.html.twig +++ b/themes/grav/templates/partials/plugin-data.html.twig @@ -4,7 +4,7 @@ {{ "PLUGIN_ADMIN.AUTHOR"|tu }}: {% if plugin.author.url %} - {{ plugin.author.name }} + {{ plugin.author.name }} {% else %} {{ plugin.author.name }} {% endif %} @@ -17,19 +17,19 @@ {% if plugin.homepage %} {{ "PLUGIN_ADMIN.HOMEPAGE"|tu }}: - {{ plugin.homepage }} + {{ plugin.homepage }} {% endif %} {% if plugin.demo %} {{ "PLUGIN_ADMIN.DEMO"|tu }}: - {{ plugin.demo }} + {{ plugin.demo }} {% endif %} {% if plugin.bugs %} {{ "PLUGIN_ADMIN.BUG_TRACKER"|tu }}: - {{ plugin.bugs }} + {{ plugin.bugs }} {% endif %} {% if plugin.keywords %} @@ -56,7 +56,7 @@ {% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %} {{ "PLUGIN_ADMIN.README"|tu }}: - {{ readme_link }} + {{ readme_link }} {% endif %} diff --git a/themes/grav/templates/partials/themes-details.html.twig b/themes/grav/templates/partials/themes-details.html.twig index 09742f57..bea4dec3 100644 --- a/themes/grav/templates/partials/themes-details.html.twig +++ b/themes/grav/templates/partials/themes-details.html.twig @@ -35,7 +35,7 @@ {{ "PLUGIN_ADMIN.AUTHOR"|tu }}: {% if theme.author.url %} - {{ theme.author.name }} + {{ theme.author.name }} {% else %} {{ theme.author.name }} {% endif %} @@ -48,19 +48,19 @@ {% if theme.homepage %} {{ "PLUGIN_ADMIN.HOMEPAGE"|tu }}: - {{ theme.homepage }} + {{ theme.homepage }} {% endif %} {% if theme.demo %} {{ "PLUGIN_ADMIN.DEMO"|tu }}: - {{ theme.demo }} + {{ theme.demo }} {% endif %} {% if theme.bugs %} {{ "PLUGIN_ADMIN.BUG_TRACKER"|tu }}: - {{ theme.bugs }} + {{ theme.bugs }} {% endif %} {% if theme.keywords %} @@ -88,7 +88,7 @@ {% set readme_link = theme.readme ?: theme.homepage ~ '/blob/master/README.md' %} {{ "PLUGIN_ADMIN.README"|tu }}: - {{ readme_link }} + {{ readme_link }} {% endif %}