about summary refs log tree commit diff stats
path: root/layouts/_default
diff options
context:
space:
mode:
authorAlan Pearce2014-09-06 20:31:02 +0100
committerAlan Pearce2014-09-06 20:31:02 +0100
commit18fe6ce1a1a328233f4c062645ea5da8dee4c974 (patch)
tree594cd6d6e073ecc432550ec3bf8562c1834b2285 /layouts/_default
parent02f9a653b4259e6cee8b1137318d283a313894c3 (diff)
downloadhyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.tar.lz
hyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.tar.zst
hyde-18fe6ce1a1a328233f4c062645ea5da8dee4c974.zip
Add footer to posts with category and tags
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html17
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" . }}