Commit 6a94495e authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Add taxonomy term as body class on taxonomy list pages

Closes #155
parent 76f7be69
......@@ -4,6 +4,8 @@
{{- if .IsHome }} home{{ end -}}
{{- if .IsPage }} single {{ .Title | urlize }}{{ end -}}
{{- if .IsNode }} list{{ end -}}
{{- /* if the page is a taxonomy term page, add that term and taxonomy to the body classes too */}}
{{- if eq .Kind "term" }} {{ .Data.Singular }}{{ end -}}
{{- /* if body classes are set in frontmatter, add those too */}}
{{- $bodyClasses := partial "get-param/body-classes.html" . }}
{{- if ne $bodyClasses false }} {{ lower $bodyClasses }}{{ end -}}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment