{{- define "main" }}
{{ partial "breadcrumbs.html" . }}

{{ .Title }} {{- if .Draft }} {{- end }}

{{- if not (.Param "hideMeta") }} {{- end }}
{{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }} {{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }} {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} {{- if .Params.series -}} {{- with index (.GetTerms "series") 0 -}}

This post is part of the {{ .LinkTitle }} series.

{{- end -}} {{- end -}} {{- if .Content }} {{- if eq .Params.delang true }}
{{- else }}
{{- end }} {{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
{{- end }} {{- if (.Param "comments") }} {{- partial "comments.html" . }} {{- end }}
{{ partial "post_nav_links.html" . }} {{- if .Params.series -}}
{{- $series := where .Site.RegularPages.ByDate ".Params.series" "intersect" .Params.series -}} {{- with $series -}}

Posts in this series

    {{- range . -}}
  1. {{- if eq .File.UniqueID $.File.UniqueID -}} {{ .Title }} {{- else -}} {{ .Title }} {{- end -}}
  2. {{- end -}}
{{- end -}}
{{- end -}} {{- end }}{{/* end main */}}