mirror of
https://github.com/docker/docs.git
synced 2026-03-29 15:28:51 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
11 lines
589 B
HTML
11 lines
589 B
HTML
{{/* Pagefind metadata - must be inside data-pagefind-body */}}
|
|
{{- $description := partial "utils/description.html" . -}}
|
|
{{- $keywords := partialCached "utils/keywords.html" . . -}}
|
|
{{- $breadcrumbs := slice -}}
|
|
{{- range after 1 .Ancestors.Reverse -}}
|
|
{{- $breadcrumbs = $breadcrumbs | append .LinkTitle -}}
|
|
{{- end -}}
|
|
{{- with $description }}<meta data-pagefind-meta="description:{{ . }}">{{ end }}
|
|
{{- with $keywords }}<meta data-pagefind-meta="keywords:{{ delimit . ", " }}">{{ end }}
|
|
{{- with $breadcrumbs }}<meta data-pagefind-meta="breadcrumbs:{{ delimit . " / " }}">{{ end }}
|