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

{{ .Title }}

{{ with .Param "summary" }}

{{ . | markdownify }}

{{ end }} {{/* Reading Time */}}

{{ 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" }}   ยท   {{ .ReadingTime }} min read {{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 Content */}} {{ if .Param "toc" }} {{ end }} {{/* Page content */}}
{{ .Content }} {{ if .Site.Params.giscus.enable }} {{ partial "comments.html" . }} {{ end }}
{{ if .Store.Get "hasMermaid" }} {{ 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 }}