mirror of https://github.com/onweru/compose.git

weru
01.08.2022 1b61f09eea2a67ef791fbbabd6ed738ea2eb4c1f
layouts/_default/baseof.html
@@ -12,10 +12,20 @@
    {{- with $docSections }}{{- else }}
      {{- $docSections = "docs" }}
    {{- end }}
    {{- if or (in $docSections .Section) (and (ne site.Params.uniqueHomepage true) .IsHome) }}
    {{ $uniqueHomepage := .IsHome }}
    {{ if site.Params.uniqueHomepage }}
      {{ if .IsHome }}
        {{ $uniqueHomepage = true }}
      {{ end }}
    {{ else }}
      {{ $uniqueHomepage = false }}
    {{ end }}
    {{- if and (in $docSections .Section) (ne $uniqueHomepage true) }}
      {{- partial "document" . }}
    {{- else }}
      {{- block "main" . }}{{ end }}
      <div class="content">
        {{- block "main" . }}{{ end }}
      </div>
    {{- end -}}
  </div>
  {{- partialCached "footer" . -}}