Add raw link to footer
This commit is contained in:
parent
aa8389bc6b
commit
528d00b54e
4 changed files with 11 additions and 9 deletions
12
config.yml
12
config.yml
|
@ -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"
|
||||
|
||||
|
|
|
@ -9,7 +9,13 @@
|
|||
</ul>
|
||||
<ul class="copyright">
|
||||
<li>© {{ title .Site.Params.author }} {{ now.Year }} - All rights reserved.</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>
|
||||
|
|
Loading…
Reference in a new issue