{{- /* What a page offers above its words. Its reading levels, when it has a retelling or is one: the full page, then each retelling by who it is for. And its sections, as a list that stays closed until the reader asks for it. A page with neither shows nothing here. */ -}} {{- $levels := index (partialCached "levels.html" "levels") .RelPermalink -}} {{- $toc := "" -}} {{- if not .IsHome }}{{ $toc = cond (.Params.shift | default false) (.Fragments.ToHTML 1 2 false) (.Fragments.ToHTML 2 3 false) }}{{ end -}} {{- if not (strings.Contains $toc "
  • ") }}{{ $toc = "" }}{{ end -}} {{- if or $levels $toc }}
    {{- with $levels }} {{- end }} {{- with $toc }}
    On this page {{ . }}
    {{- end }}
    {{- end }}