{{ define "main" }}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} {{ partial "toc.html" . }}
{{ partial "breadcrumb.html" . }} {{ if .Title }}

{{ .Title }}

{{ end }}
{{- with $date := .Date }}{{ partial "utils/format-date" $date }}{{ end -}} {{- $lazyLoading := site.Params.enableImageLazyLoading | default true -}} {{ if and .Date .Params.authors }}ยท{{ end -}} {{- with $.Params.authors -}} {{- range $i, $author := . -}} {{- if reflect.IsMap $author -}} {{- if and $i (not $author.image) }},{{ end -}} {{- with $image := $author.image }} {{- $isLocal := not (urls.Parse $image).Scheme -}} {{- $startsWithSlash := hasPrefix $image "/" -}} {{- if and $isLocal $startsWithSlash }} {{- $image = (relURL (strings.TrimPrefix "/" $image)) -}} {{ end -}} {{ $author.name }} {{ end -}}
{{ $author.name }}
{{- else -}} {{- if $i }},{{ end -}}{{ $author }} {{- end -}} {{- end -}} {{- end -}}
{{ .Content }}
{{- partial "components/last-updated.html" . -}} {{- if (site.Params.blog.article.displayPagination | default true) -}} {{- .Scratch.Set "reversePagination" true -}} {{- partial "components/pager.html" . -}} {{ end }} {{- partial "components/comments.html" . -}}
{{ end }}