docs/layouts/single.html
{{ partial "layouts/docsheader.html" . }} {{ with .Params.description }} {{ . | markdownify }} {{ end }} {{ if .Params.show_publish_date }} {{ with .PublishDate }}
{{ partial "layouts/date.html" . }}
{{ end }} {{ end }} {{ $t := debug.Timer "single.categories" }} {{ $categories := .GetTerms "categories" }} {{ with $categories }} {{ range . }} {{ $text := .LinkTitle }} {{ $class := "" }} {{ range (slice true false ) }} {{ $color := partial "helpers/funcs/color-from-string.html" (dict "text" $text "dark" . "--single" "green" ) }} {{ $prefix := "" }} {{ if . }} {{ $prefix = "dark:" }} {{ end }} {{ $class = printf "%sbg-%s-%d %stext-%s-%d border %sborder-%s-%d" $prefix $color.color $color.shade1 $prefix $color.color $color.shade2 $prefix $color.color $color.shade3 }} {{ end }} {{ .LinkTitle }} {{ end }} {{ end }} {{ $t.Stop }} {{ if .Params.functions_and_methods.signatures }} {{- partial "docs/functions-signatures.html" . -}} {{- partial "docs/functions-return-type.html" . -}} {{- partial "docs/functions-aliases.html" . -}} {{ end }} {{ $t := debug.Timer "single.content" }} {{ .Content }} {{ $t.Stop }} {{ $t := debug.Timer "single.page-edit" }} {{ partial "layouts/page-edit.html" . }} {{ $t.Stop }}