1
Fork 0

Add raw link to footer

This commit is contained in:
Jake Howard 2017-06-24 21:22:09 +01:00
parent aa8389bc6b
commit 528d00b54e
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 11 additions and 9 deletions

View file

@ -10,26 +10,22 @@ params:
nav_items: 5
index_items: 6
mediaTypes:
text/markdown:
suffix: md
outputFormats:
markdown:
name: "md"
mediaType: "text/markdown"
name: "txt"
mediaType: "text/plain"
isPlainText: true
outputs:
home:
- "html"
- "rss"
- "md"
section:
- "html"
- "rss"
- "md"
- "txt"
page:
- "html"
- "md"
- "txt"
staticDir: "static/build"

View file

@ -9,7 +9,13 @@
</ul>
<ul class="copyright">
<li>&copy; {{ title .Site.Params.author }} {{ now.Year }} - All rights reserved.</li>
<li><a href="{{ .Site.Data.social.accounts.github.link }}theorangeone.net">View Source</a></li>
{{ if .OutputFormats.Get "txt" }}
{{ with .OutputFormats.Get "txt" }}
<li><a href="{{ .Permalink }}">View Raw</a></li>
{{ end }}
{{ else }}
<li><a href="{{ .Site.Data.social.accounts.github.link }}theorangeone.net">View Source</a></li>
{{ end }}
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>