{{ partial "site-head.html" . }} {{ $hasToc := strings.Contains .TableOfContents "
  • " }} {{ $isPostSection := or (eq .Section "articles") (eq .Section "news") }} {{ $sectionListLabel := cond (eq .Section "news") "news" "articles" }} {{ $sectionItemLabel := cond (eq .Section "news") "news item" "article" }} {{ $sectionURL := printf "/%s/" .Section }} {{ $hasExplicitTitle := ne .Title "" }} {{ $hasDate := false }} {{ with .Date }}{{ $hasDate = true }}{{ end }} {{ $hasAuthor := and (ne .Section "news") .Params.author }} {{ partial "site-header.html" (dict "Page" . "HasToc" $hasToc) }} {{ if $hasToc }}
    {{ end }}
    {{ if $isPostSection }}

    ← All {{ $sectionListLabel }}

    {{ end }} {{ if $hasExplicitTitle }}

    {{ .Title }}

    {{ end }} {{ if or $hasDate $hasAuthor }} {{ end }} {{ .Content }} {{ if $isPostSection }} {{ if or .PrevInSection .NextInSection }} {{ end }}

    ← All {{ $sectionListLabel }}

    {{ end }}
    {{ partial "site-footer.html" . }} {{ if $hasToc }} {{ partial "toc-scripts.html" . }} {{ end }}