{{ define "main" }} {{/* Breadcrumbs */}} {{ if not .IsHome }} {{ partial "breadcrumbs.html" . }} {{ end }}
{{- /* Title and Summary */}}

{{ .Title }}

{{- with .Param "summary" }}

{{ . | markdownify }}

{{- end }} {{- /* Date, Reading Time and Author */}} {{ if or (or (.Param "author") (.Param "authorAvatarPath")) (or .Date (.Param "readTime")) }}
{{ with $.Param "authorAvatarPath" }} Author Avatar {{ end }}
{{ with .Param "author" }}

{{- .}}

{{ end }}

{{- with .Date }} {{- $dateMachine := . | time.Format "2006-01-02T15:04:05-07:00" }} {{- $dateHuman := . | time.Format (default ":date_long" $.Site.Params.singleDateFormat) }} {{- end }} {{- if .Param "readTime" }} {{ if .Date }}  ยท  {{ end }} {{- .ReadingTime }} min read {{- end }}

{{- end}}
{{- if .Param "showTags" }} {{- $taxonomy := "tags" }} {{- with .Param $taxonomy }}
{{- range $index, $tag := . }} {{- with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} #{{ .LinkTitle }} {{- end }} {{- end }}
{{- end }} {{- end }} {{- /* Table of Contents */}} {{- if .Param "toc" }} {{- end }} {{- /* Page content */}}
{{ .Content }}
{{- /* Comments */}} {{- if and .Site.Params.giscus.enable (not .Params.disableComment) }}
{{ partial "comments.html" . }}
{{- end }} {{ if .Store.Get "hasMermaid" }} {{ $mermaidDarkTheme := default "dark" (or .Params.mermaidDarkTheme .Site.Params.mermaidDarkTheme) }} {{ $mermaidTheme := default "default" (or .Params.mermaidTheme .Site.Params.mermaidTheme) }} {{ end }} {{/* Next prev controls */}} {{ if not (.Param "hidePagination") }} {{ partial "pagination-single.html" . }} {{ end }} {{/* Back to top */}} {{ if not (.Param "hideBackToTop") }}
back to top
{{ end }}
{{ end }}