diff options
author | Alan Pearce | 2014-09-06 20:31:02 +0100 |
---|---|---|
committer | Alan Pearce | 2014-09-06 20:31:02 +0100 |
commit | 18fe6ce1a1a328233f4c062645ea5da8dee4c974 (patch) | |
tree | 594cd6d6e073ecc432550ec3bf8562c1834b2285 /layouts/_default/single.html | |
parent | 02f9a653b4259e6cee8b1137318d283a313894c3 (diff) | |
download | hyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.tar.lz hyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.tar.zst hyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.zip |
Add footer to posts with category and tags
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 984fcab..38251ee 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,6 +9,23 @@ <main class="post-content e-content" itemprop="articleBody"> {{ .Content }} </main> + <footer class="footer"> + <span> + Category: + {{ range first 1 .Params.categories }} + <a class="p-category" href="/categories/{{ . | lower | urlize }}/">{{ . }}</a> + {{ end }} + </span> + <p> + Tags: + {{ range .Params.tags }} + <span itemprop="keywords"> + <a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a> + </span> + {{ end }} + + </p> + </footer> </article> </main> {{ partial "sidebar.html" . }} |