Commit 12ae0ec4 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Add page kind to body classes and comment template better

Towards #155
parent e1bae8f9
{{- /* set page kind as a body class */}}
{{- .Kind }}
{{- /* set body classes depending on the following conditions */}}
{{- if .IsHome }}home {{ end -}}
{{- if .IsPage }}single {{ .Title | urlize }}{{ end -}}
{{- if .IsNode }}list {{ end -}}
{{- $bodyClasses := partial "get-param/body-classes.html" . }}{{ if ne $bodyClasses false }} {{ lower $bodyClasses -}}{{- end }}
\ No newline at end of file
{{- if .IsHome }} home{{ end -}}
{{- if .IsPage }} single {{ .Title | urlize }}{{ end -}}
{{- if .IsNode }} list{{ 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