{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}} {{- define "content" -}} {{- $params := .Scratch.Get "params" -}} {{- /* Auto TOC */ -}} {{- if ne $params.toc.enable false -}}

{{ T "contents" }}

{{- end -}}
{{- /* Title */ -}}

{{ .Title }}

{{- /* Subtitle */ -}} {{- with $params.subtitle -}}

{{ . }}

{{- end -}} {{- /* Meta */ -}}
{{- /* Featured image */ -}} {{- with $params.featuredimage -}} {{- end -}} {{- /* Static TOC */ -}} {{- if $params.toc.enable -}}
{{ T "contents" }}
{{- $toc := .TableOfContents -}} {{- $toc = partial "function/fontawesome.html" $toc -}} {{- $toc = partial "function/ruby.html" $toc -}} {{- $toc | safeHTML -}}
{{- end -}} {{- /* Content */ -}}
{{- dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- /* Footer */ -}} {{- partial "single/footer.html" . -}} {{- /* Comment */ -}} {{- partial "comment.html" . -}}
{{- end -}}