Managing i18n

This commit is contained in:
Hugo Martin 2020-08-04 18:47:20 +02:00 committed by Emruz Hossain
parent 6c2cca0127
commit 9930b37554
5 changed files with 37 additions and 12 deletions

View file

@ -29,9 +29,9 @@
{{- partial "sections/home.html" . -}}
<!--- ADD OPTIONAL SECTIONS ----------->
{{ if .Site.Data.sections }}
{{ if (index .Site.Data .Site.Language.Lang).sections }}
{{ $background:= "bg-white"}}
{{ range sort .Site.Data.sections "section.weight" }}
{{ range sort (index .Site.Data .Site.Language.Lang).sections "section.weight" }}
{{ if .section.enable }}
<div class="container-fluid section-holder d-flex {{ $background }}">
{{ if .section.template }}