{{ .Title }}
{{- /* Subtitle */ -}} {{- with $params.subtitle -}}{{ . }}
{{- end -}} {{- /* Meta */ -}} {{- /* Featured image */ -}} {{- $image := $params.featuredimage -}} {{- $width := "auto" -}} {{- $height := "auto" -}} {{- with .Resources.GetMatch (printf "**%s" $params.featuredimage) -}} {{- if eq .ResourceType "image" -}} {{- $image = .RelPermalink -}} {{- $width = .Width -}} {{- $height = .Height -}} {{- else -}} {{- warnf "invalid featured image detected!" -}} {{- end -}} {{- end -}} {{- with .Resources.GetMatch "featured-image" -}} {{- $image = .RelPermalink -}} {{- $width = .Width -}} {{- $height = .Height -}} {{- end -}} {{- with $image -}}
{{- dict "Src" . "Title" $.Description "Resources" $.Resources "Width" $width "Height" $height "Loading" "eager" | partial "plugin/image.html" -}}
{{- end -}}
{{- /* Series list */ -}}
{{- if $params.series | and $params.seriesNavigation -}}
{{- range $key, $value := .Site.Taxonomies.series -}}
{{- range $params.series -}}
{{- if . | urlize | eq ($key | urlize) -}}
{{- $term := $.Site.GetPage "series" $key -}}
{{ T "series" }} - {{ $term.Title }}
{{ T "contents" }}
{{- dict "Content" .TableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- /* Outdated Article Reminder */ -}}
{{- partial "single/outdatedArticleReminder.html" . -}}
{{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{/* Related Content */}}
{{- if $params.related.enable -}}
{{- partial "related.html" . -}}
{{- end -}}
{{/* Sponsor */}}
{{- partial "single/sponsor.html" . -}}
{{- /* Footer */ -}}
{{- partial "single/footer.html" . -}}
{{- /* Comment */ -}}
{{- partial "comment.html" . -}}