{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}} {{- define "content" -}} {{- $scratch := .Scratch.Get "scratch" -}} {{- /* Auto TOC */ -}} {{- if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) -}}

{{ T "contents" }}

{{- $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default true }}
{{- end -}}
{{- /* Title */ -}}

{{ .Title }}

{{- with .Params.subtitle -}}

{{ . }}

{{- end -}} {{- /* Meta */ -}}
{{- /* Featured image */ -}} {{- with .Params.featuredImage -}} {{- end -}} {{- /* Static TOC */ -}} {{- if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) -}}
{{ T "contents" }}
{{- $toc := .TableOfContents -}} {{- $toc = partial "function/fontawesome.html" $toc -}} {{- $toc = partial "function/ruby.html" $toc -}} {{- $toc | safeHTML -}}
{{- end -}} {{- /* Content */ -}}
{{- partial "function/content.html" .Content | safeHTML -}}
{{- /* Footer */ -}} {{- partial "single/footer.html" . -}} {{- /* Comment */ -}} {{- if ( .Params.comment | default true ) -}} {{- partial "comment.html" . -}} {{- end -}}
{{- end -}}