{{- if .context.Params.blocks -}} {{- partial "blocks/toc.html" .context.Params.blocks -}} {{- else -}} {{/* TODO: Delete it */}} {{ $h2s := partial "H2Extract" .context.Content }} {{- if and (not $h2s) (partial "GetTextFromHTML" .context.Content) }}
  1. {{ i18n "pages.informations" }}
  2. {{ end -}} {{- range $index, $h2 := $h2s }}
  3. {{ plainify $h2 }}
  4. {{ end -}} {{- if .context.Pages }}
  5. {{ i18n "pages.details" }}
  6. {{ end -}} {{- if .category.Pages }}
  7. {{ i18n "pages.posts" }}
  8. {{ end -}} {{- end -}}