commit:     55b3ab188ab2253070262c9a0e760cbc339bfded
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Feb 13 21:04:39 2016 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 21:04:39 2016 +0000
URL:        https://gitweb.gentoo.org/sites/www.git/commit/?id=55b3ab18

nav: Mark external links

 _plugins/navigation.rb | 4 ++++
 _sass/misc.scss        | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/_plugins/navigation.rb b/_plugins/navigation.rb
index 66bf9a3..1df5284 100644
--- a/_plugins/navigation.rb
+++ b/_plugins/navigation.rb
@@ -88,6 +88,10 @@ module Gentoo
             html += page.data['title']
           end
 
+          if page.data.key? 'redirect'
+            html += ' <span class="fa fa-fw fa-external-link-square 
external-link" title="This link will leave www.gentoo.org."></span>'
+          end
+
           html += "</a></li>\n"
         end
 

diff --git a/_sass/misc.scss b/_sass/misc.scss
index 7d754c3..f74cda2 100644
--- a/_sass/misc.scss
+++ b/_sass/misc.scss
@@ -109,4 +109,8 @@ body.nav-align-h2 #content h2:first-of-type {
 
 .use-desc {
   width: 75%;
-}
\ No newline at end of file
+}
+
+.external-link {
+  color: #979797;
+}

Reply via email to