{{- define "main" }} {{- if (.Param "isapage")}}
{{ partial "breadcrumbs.html" . }}

{{ .Title }} {{- if .Draft }}  [draft]{{- end }}

{{- if .Description }}
{{ .Description }}
{{- end }} {{- if not (.Param "hideMeta") }} {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} {{- end }}
{{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} {{- if .Description }}
{{ .Description }}
{{- end }} {{- if (.Param "curriculum") }} {{- if not (.Param "english") }} {{- else }} {{- end }} {{- end }} {{- if .Content }}
{{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
{{- end }} {{- if (.Param "comments") }} {{- partial "comments.html" . }} {{- end }}
{{- end }} {{- if not (.Param "isapage") }}
{{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden }} {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{ partial "breadcrumbs.html" . }}

{{ .Title | markdownify}} {{- if .Draft }}  [draft]{{- end }}

{{- if .Description }}
{{ .Description }}
{{- end }} {{- if not (.Param "hideMeta") }} {{- end }}
{{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} {{- if .Content }}
{{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
{{- end }} {{- if (.Param "comments") }} {{- partial "comments.html" . }} {{- end }}
{{- end }} {{- end }}{{/* end main */}}