Configure section title and menu urls in section yaml files

This commit is contained in:
Jason Tipton 2020-06-29 20:47:41 -08:00
parent 45535cd290
commit ff692650a7
7 changed files with 114 additions and 99 deletions

View file

@ -33,7 +33,11 @@
{{ range sort .Site.Data.sections "section.weight" }}
{{ if .section.enable }}
<div class="container-fluid section-holder d-flex {{ $background }}">
{{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}}
{{ if .section.template }}
{{- partial .section.template . -}}
{{ else }}
{{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}}
{{ end }}
</div>
<!--- alter background color for next section --->
{{ if eq $background "bg-white" }}