Permalink
Browse files

link GitHub icon to project repository if uri-project-repo attribute …

…is set
  • Loading branch information...
1 parent 6855ea4 commit ced44ff9a4dfc26184a08a5aeafe82f3b5c8eb33 @mojavelinux mojavelinux committed Nov 25, 2016
Showing with 13 additions and 1 deletion.
  1. +5 −1 _layouts/docs.html.slim
  2. +1 −0 docs/asciidoctor-revealjs.adoc
  3. +7 −0 stylesheets/styles.scss
@@ -18,7 +18,11 @@ header
li: a.tiny.secondary.button href="https://github.com/asciidoctor/asciidoctor.org/edit/master#{page.relative_source_path}" Edit
li: a.tiny.secondary.button href="https://github.com/asciidoctor/asciidoctor.org/raw/master#{page.relative_source_path}" Raw
li: a.tiny.secondary.button href="https://github.com/asciidoctor/asciidoctor.org/commits/master#{page.relative_source_path}" History
- li: i.fa.fa-github.fa-fw
+ li
+ - if document.attr? 'uri-project-repo'
+ a href=(document.attr 'uri-project-repo') title='Project Repository': i.fa.fa-github.fa-fw
+ - else
+ i.fa.fa-github.fa-fw
- if page.url =~ /^\/docs\/asciidoc-syntax-quick-reference/
li: a href='/docs/asciidoc-syntax-quick-reference.pdf' style='text-decoration: none' title='Download PDF': i.fa.fa-file-text-alt.fa-fw
- if page.url =~ /^\/docs\/asciidoc-writers-guide/
@@ -5,6 +5,7 @@
:page-layout: docs
:keywords: Asciidoctor Reveal.js, AsciiDoc, Asciidoctor, reveal.js, slides
include::https://cdn.rawgit.com/asciidoctor/asciidoctor-reveal.js/{gitref}/README.adoc[lines=1..9]
+:uri-project-repo: {uri-us}
:!toc:
// TODO this second include directives is necessary until the toc is disabled for env-site in the upstream README
@@ -1206,8 +1206,15 @@ sup.footnoteref {
}
&.fa-file-text-alt {
font-size: 1.4em;
+ }
+ }
+ & > li a {
+ i.fa {
color: $body-font-color;
}
+ &:hover i.fa {
+ color: $anchor-font-color;
+ }
}
}

0 comments on commit ced44ff

Please sign in to comment.