summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2020-06-18 17:49:00 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2020-06-18 17:49:00 +0200
commitf0ee502fb60719e80223e3849eb6c7246949de5f (patch)
treed957dc2277850b076a2cba6f858099ad9dcd4f0c /layouts
parent70a25fd804daa5df4b5cd34aac5de99acabc5cff (diff)
downloadblog-f0ee502fb60719e80223e3849eb6c7246949de5f.tar.gz
blog-f0ee502fb60719e80223e3849eb6c7246949de5f.zip
Update posts with source code links
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index ea9990a..31b7d83 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -21,6 +21,9 @@
{{ if ne .Params.link nil }}
<a href="{{ .Params.link }}" class="card-link">Visit Website</a>
{{ end }}
+ {{ if ne .Params.source nil }}
+ <a href="{{ .Params.source }}" class="card-link">View Source</a>
+ {{ end }}
<span class="card-date">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
</span>