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
|
nav_items: 5
|
||||||
index_items: 6
|
index_items: 6
|
||||||
|
|
||||||
mediaTypes:
|
|
||||||
text/markdown:
|
|
||||||
suffix: md
|
|
||||||
outputFormats:
|
outputFormats:
|
||||||
markdown:
|
markdown:
|
||||||
name: "md"
|
name: "txt"
|
||||||
mediaType: "text/markdown"
|
mediaType: "text/plain"
|
||||||
isPlainText: true
|
isPlainText: true
|
||||||
outputs:
|
outputs:
|
||||||
home:
|
home:
|
||||||
- "html"
|
- "html"
|
||||||
- "rss"
|
- "rss"
|
||||||
- "md"
|
|
||||||
section:
|
section:
|
||||||
- "html"
|
- "html"
|
||||||
- "rss"
|
- "rss"
|
||||||
- "md"
|
- "txt"
|
||||||
page:
|
page:
|
||||||
- "html"
|
- "html"
|
||||||
- "md"
|
- "txt"
|
||||||
|
|
||||||
staticDir: "static/build"
|
staticDir: "static/build"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,13 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="copyright">
|
<ul class="copyright">
|
||||||
<li>© {{ title .Site.Params.author }} {{ now.Year }} - All rights reserved.</li>
|
<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>
|
<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>
|
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in a new issue