Skip to content
Snippets Groups Projects
Commit 51840760 authored by alexisben's avatar alexisben
Browse files

simplify getbodyclass

parent f8decad8
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,11 @@
{{- $bodyclass = printf "page-%s" $bodyclass -}}
{{- end -}}
{{- if or .Params.full_width (and (eq .Kind "section") (eq .Type "posts")) (and (or (eq .Type "programs") (eq .Type "diplomas") ) (not .Params.diplomas)) -}}
{{- if .Params.layout.full_width -}}
{{- $bodyclass = printf "full-width %s" $bodyclass -}}
{{- end -}}
{{- if and (eq .Kind "page") (eq .Type "posts") -}}
{{- $bodyclass = printf "offcanvas-toc %s" $bodyclass -}}
{{- end -}}
{{- if .Params.diplomas -}}
{{- if .Params.layout.offcanvas -}}
{{- $bodyclass = printf "offcanvas-toc %s" $bodyclass -}}
{{- end -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment