From 2a09fd4fbc6c5ff7ef8889f96f885864de85010b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 6 May 2020 14:41:16 +0200 Subject: [PATCH] Remove 'nofollow' from the robots meta tag Closes #3288 Closes #3287 --- com.woltlab.wcf/templates/headInclude.tpl | 2 +- com.woltlab.wcf/templates/headIncludeRobotsMetaTag.tpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 com.woltlab.wcf/templates/headIncludeRobotsMetaTag.tpl diff --git a/com.woltlab.wcf/templates/headInclude.tpl b/com.woltlab.wcf/templates/headInclude.tpl index f822ef17b8..51a29c2ebc 100644 --- a/com.woltlab.wcf/templates/headInclude.tpl +++ b/com.woltlab.wcf/templates/headInclude.tpl @@ -1,7 +1,7 @@ -{if $allowSpidersToIndexThisPage|empty && ($__wcf->getActivePage() == null || !$__wcf->getActivePage()->allowSpidersToIndex)}{/if} +{include file='headIncludeRobotsMetaTag'} {implode from=$__wcf->getMetaTagHandler() item=__metaTag glue="\n"}{@$__metaTag}{/implode} {event name='metaTags'} diff --git a/com.woltlab.wcf/templates/headIncludeRobotsMetaTag.tpl b/com.woltlab.wcf/templates/headIncludeRobotsMetaTag.tpl new file mode 100644 index 0000000000..bb1bf50a90 --- /dev/null +++ b/com.woltlab.wcf/templates/headIncludeRobotsMetaTag.tpl @@ -0,0 +1 @@ +{if ($allowSpidersToIndexThisPage|empty && ($__wcf->getActivePage() == null || !$__wcf->getActivePage()->allowSpidersToIndex)) || ($allowSpidersToIndexThisPage|isset && $allowSpidersToIndexThisPage == false)}{/if} -- 2.20.1