Skip to content
Snippets Groups Projects
index.html 1.07 KiB
Newer Older
alexisben's avatar
alexisben committed
{{ define "main" }}
  {{ partial "home/hero.html" . }}

alexisben's avatar
alexisben committed
  <div class="document-content">
alexisben's avatar
alexisben committed
    {{ partial "toc/container.html"
        (dict
            "toc" "toc/default.html"
            "context" .
        )
    }}

alexisben's avatar
alexisben committed
    {{ partial "home/chapo.html" (dict
        "with_container" true
        "context" .
      ) }}
alexisben's avatar
alexisben committed

alexisben's avatar
alexisben committed
    {{- if .Params.blocks }}
  
      {{- partial "blocks/list.html" . -}}
  
    {{ else }}
  
      <div class="container">
        {{ if (partial "GetTextFromHTML" .Content) }}
alexisben's avatar
alexisben committed
        <section>
alexisben's avatar
alexisben committed
          {{- partial "PrepareHTML" .Content -}}
alexisben's avatar
alexisben committed
        </section>
alexisben's avatar
alexisben committed
        {{ end }}
  
        {{- range site.Data.menus.primary -}}
          <section>
            {{ partial "home/top.html" . }}
  
            {{ if eq .kind "news" }}
              {{ partial "home/posts.html" . }}
            {{ else }}
              {{ if .children }}
                {{ partial "home/pages.html" . }}
              {{ end }}
            {{ end }}
          </section>
        {{ end }}
  
        {{ partial "home/volumes.html" . }}
      </div>
  
    {{ end -}}
  </div>
alexisben's avatar
alexisben committed

{{ end }}