diff --git a/layouts/functions/single.html b/layouts/functions/single.html deleted file mode 100644 index b1e70b927..000000000 --- a/layouts/functions/single.html +++ /dev/null @@ -1,78 +0,0 @@ -{{ define "main" }} - {{ $ttop := debug.Timer "single" }} -
- {{ 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 }} -
-
- {{ $ttop.Stop }} -{{ end }} - -{{ define "rightsidebar_content" }} - {{/* in-this-section.html depends on these being reneredc first. */}} - {{ $related := partial "layouts/related.html" . }} - {{ $toc := partial "layouts/toc.html" . }} - {{ if not .Params.hide_in_this_section }} - {{ partial "layouts/in-this-section.html" . }} - {{ end }} - {{ $related }} - {{ if $.Store.Get "hasToc" }} - {{ $toc }} - {{ end }} -{{ end }}