Skip to content
Snippets Groups Projects
list.html 735 B
Newer Older
alexisben's avatar
alexisben committed
{{ define "main" }}
  {{ partial "pages/hero.html" . }}

alexisben's avatar
alexisben committed
  <div class="document-content">
    {{- $category := site.GetPage (printf "/categories%s" .Params.category) -}}
    {{- if .Params.blocks }}
      {{ $need_aside := false }}
      {{ range .Params.blocks }}
        {{ if .title }}
          {{ $need_aside = true }}
        {{ end }}
alexisben's avatar
alexisben committed
      {{ end }}
alexisben's avatar
alexisben committed

      {{ partial "toc/container.html"
          (dict
              "category" $category
              "toc" "pages/toc.html"
              "context" .
          )
      }}
      {{ partial "blocks/list.html" . }}

alexisben's avatar
alexisben committed
    {{ else }}
      {{ partial "pages/image.html" .Params.image }}
      {{ partial "pages/children.html" .Params.children }}
alexisben's avatar
alexisben committed
    {{ end }}
alexisben's avatar
alexisben committed
  </div>
alexisben's avatar
alexisben committed

{{ end }}