Commit e1bae8f9 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Don’t add body class variable to body if var is false

Towards #155
parent 4c7108a6
......@@ -2,4 +2,4 @@
{{- if .IsHome }}home {{ end -}}
{{- if .IsPage }}single {{ .Title | urlize }}{{ end -}}
{{- if .IsNode }}list {{ end -}}
{{- $bodyClasses := partial "get-param/body-classes.html" . }} {{ lower $bodyClasses -}}
\ No newline at end of file
{{- $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