You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/04/16 07:54:20 UTC

[camel-website] branch master updated: CAMEL-13888: Add rel tag to external links

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new c6d9fdc  CAMEL-13888: Add rel tag to external links
c6d9fdc is described below

commit c6d9fdcdc8de04b93e5cc1837963d53dfd552fae
Author: avgupt <58...@users.noreply.github.com>
AuthorDate: Thu Apr 16 13:24:12 2020 +0530

    CAMEL-13888: Add rel tag to external links
---
 antora-ui-camel/src/partials/footer-content.hbs | 10 +++++-----
 antora-ui-camel/src/partials/header-content.hbs |  6 +++---
 config.toml                                     |  4 ++++
 layouts/partials/footer.html                    | 10 +++++-----
 layouts/partials/header.html                    |  6 +++---
 5 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/antora-ui-camel/src/partials/footer-content.hbs b/antora-ui-camel/src/partials/footer-content.hbs
index 4f37be5..12301db 100644
--- a/antora-ui-camel/src/partials/footer-content.hbs
+++ b/antora-ui-camel/src/partials/footer-content.hbs
@@ -27,11 +27,11 @@
             <dl>
                 <dt>About</dt>
                 <dd><a href="{{siteRootPath}}/acknowledgments/">Acknowledgments</a></d>
-                <dd><a target="_blank" href="https://www.apache.org/events/current-event.html" title="Apache Events">Apache Events</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/licenses/" title="License">License</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/security/" title="Security">Security</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/events/current-event.html" title="Apache Events">Apache Events</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/licenses/" title="License">License</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/security/" title="Security">Security</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></dd>
             </dl>
             <p>
                 &copy; 2004-{{now_year}} The <a href="https://apache.org">Apache Software Foundation</a>.<br>
diff --git a/antora-ui-camel/src/partials/header-content.hbs b/antora-ui-camel/src/partials/header-content.hbs
index 0f87539..61ce4da 100644
--- a/antora-ui-camel/src/partials/header-content.hbs
+++ b/antora-ui-camel/src/partials/header-content.hbs
@@ -29,9 +29,9 @@
         <div id="search_results"></div>
       </div>
       <div id="social-media" class="navbar-tools">
-        <a href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#github" /></svg></a>
-        <a href="https://gitter.im/apache/apache-camel" title="Chat on Gitter"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#gitter" /></svg></a>
-        <a href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#twitter" /></svg></a>
+        <a rel="noopener noreferrer nofollow" href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#github" /></svg></a>
+        <a rel="noopener noreferrer nofollow" href="https://gitter.im/apache/apache-camel" title="Chat on Gitter"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#gitter" /></svg></a>
+        <a rel="noopener noreferrer nofollow" href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#twitter" /></svg></a>
       </div>
       <button class="navbar-burger" data-target="topbar-nav" type="button">
         <span></span>
diff --git a/config.toml b/config.toml
index cc9f14c..dcfaa68 100644
--- a/config.toml
+++ b/config.toml
@@ -8,6 +8,10 @@ disableKinds = ["taxonomyTerm"]
 enableRobotsTXT = true
 timeout = 300000
 
+[blackfriday]
+    nofollowLinks = true
+    noreferrerLinks = true
+
 [params]
     socialProfiles = ["https://twitter.com/ApacheCamel"]
     organizationLogo = "https://camel.apache.org/_/img/logo-d.svg"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7f9e95b..a490a2c 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -33,11 +33,11 @@
             <dl>
                 <dt>About</dt>
                 <dd><a href="/acknowledgments/">Acknowledgments</a></d>
-                <dd><a target="_blank" href="https://www.apache.org/events/current-event.html" title="Apache Events">Apache Events</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/licenses/" title="License">License</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/security/" title="Security">Security</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></dd>
-                <dd><a target="_blank" href="https://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/events/current-event.html" title="Apache Events">Apache Events</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/licenses/" title="License">License</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/security/" title="Security">Security</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></dd>
+                <dd><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></dd>
             </dl>
 
             <p>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f8c023f..77c9a7d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -59,9 +59,9 @@
                     <div id="search_results"></div>
                 </div>
                 <div id="social-media" class="navbar-tools">
-                  <a href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use href="{{ "_/img/brand-logos.svg#github" | relURL }}" /></svg></a>
-                  <a href="https://gitter.im/apache/apache-camel" title="Chat on Gitter"><svg class="brand-icon"><use href="{{ "/_/img/brand-logos.svg#gitter" | relURL }}" /></svg></a>
-                  <a href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg class="brand-icon"><use href="{{ "/_/img/brand-logos.svg#twitter" | relURL }}" /></svg></a>
+                  <a rel="noopener noreferrer nofollow" href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use href="{{ "_/img/brand-logos.svg#github" | relURL }}" /></svg></a>
+                  <a rel="noopener noreferrer nofollow" href="https://gitter.im/apache/apache-camel" title="Chat on Gitter"><svg class="brand-icon"><use href="{{ "/_/img/brand-logos.svg#gitter" | relURL }}" /></svg></a>
+                  <a rel="noopener noreferrer nofollow" href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg class="brand-icon"><use href="{{ "/_/img/brand-logos.svg#twitter" | relURL }}" /></svg></a>
                 </div>
                 <button class="navbar-burger" data-target="topbar-nav" type="button">
                     <span></span>