{{- define "title" }}{{ .Title }} | {{ .Site.Params.Title }}{{ end -}} {{- define "no-content" -}}
{{- $params := .Scratch.Get "params" -}} {{- $toc := $params.toc -}} {{- if eq $toc true -}} {{- $toc = .Site.Params.page.toc | default dict -}} {{- else if eq $toc false -}} {{- $toc = dict "enable" false -}} {{- end -}} {{- /* Auto TOC */ -}} {{- if ne $toc.enable false -}}
{{ T "contents" }}
{{- end -}} {{- $pageTheme := $params.Theme | default .Site.Params.Page.theme | default "classic" -}}
{{- /* Featured image */ -}} {{- $image := $params.featuredimage -}} {{- $pageImageHidden := $params.hiddenFeaturedImage -}} {{- with .Resources.GetMatch "featured-image" -}} {{- $image = .RelPermalink -}} {{- end -}} {{- if eq $pageTheme "full" -}} {{- with $image -}} {{- end -}} {{- end -}}
{{- if and (or (eq $pageTheme "classic") (eq $pageTheme "wide")) (not $pageImageHidden) -}} {{- with $image -}}
{{- end -}} {{- end -}} {{- /* Static TOC */ -}} {{- if ne $toc.enable false -}}
{{ T "contents" }}
{{- dict "Content" .TableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- end -}} {{- /* Content */ -}}
{{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}} {{- $updateDate := . -}} {{- if not (eq . ($.Site.Params.dateformat | default "2006-01-02" | $.PublishDate.Format)) -}} {{- with $params.upd -}}

{{- dict "Date" $updateDate | T "updatedOnDate" -}}: {{ $params.upd }}

{{- else -}} {{- dict "Date" . | T "updatedOnDate" -}} {{- end -}} {{- end -}} {{- end -}} {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- /* Footer Post */ -}} {{- partial "single/footer.html" . -}}
{{- with .Params.tags -}}
{{- range $index, $value := . -}} {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}} {{ $tag.Title }} {{- end -}}
{{- end -}} {{- $comment := .Site.Params.Comment -}} {{- if $comment.enable -}}
{{- $authorComment := $params.authorComment -}} {{- $authorName := $params.author | default .Site.Author.name | default " " -}} {{- if not (eq $authorName " ") -}} {{ $author := index .Site.Data.authors $authorName }} {{- if $authorComment -}}
{{ $author.name }}
{{ $authorComment }}
{{- end -}} {{- end -}} {{- /* Comment */ -}} {{- partial "comment.html" . -}}
{{- end -}}
{{- end -}}