about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 38251ee..5bd829f 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,12 +10,15 @@
 					{{ .Content }}
 				</main>
 				<footer class="footer">
+					{{ if .Params.categories }}
 					<span>
 						Category:
-						{{ range first 1 .Params.categories }}
+						{{ range .Params.categories }}
 						<a class="p-category" href="/categories/{{ . | lower | urlize }}/">{{ . }}</a>
 						{{ end }}
 					</span>
+					{{ end }}
+					{{ if .Params.tags }}
 					<p>
 						Tags:
 						{{ range .Params.tags }}
@@ -25,6 +28,7 @@
 						{{ end }}
 
 					</p>
+					{{ end }}
 				</footer>
 			</article>
 		</main>