mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +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)
26 lines
949 B
HTML
26 lines
949 B
HTML
{{- /*
|
|
Adds links for editing the page or requesting changes:
|
|
- "Edit this page": Only in production, skips files from `_vendor/` (upstream repositories).
|
|
- "Request changes": Links to a pre-filled issue form.
|
|
*/ -}}
|
|
{{ if hugo.IsProduction }}
|
|
{{ with .File }}
|
|
{{ if not (in .Filename "/_vendor/") }}
|
|
<p class="flex items-center gap-1">
|
|
<span class="icon-svg-stroke icon-sm">
|
|
{{ partial "utils/svg.html" "theme/icons/edit.svg" }}
|
|
</span>
|
|
<a class="link" rel="noopener"
|
|
href="{{ site.Params.repo }}/edit/main/content/{{ .Path }}">{{- T "editPage" -}}</a>
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
<p class="flex items-center gap-1">
|
|
<span class="icon-svg-stroke icon-sm">
|
|
{{ partial "utils/svg.html" "theme/icons/issue.svg" }}
|
|
</span>
|
|
<a class="link" rel="noopener"
|
|
href="{{ site.Params.repo }}/issues/new?template=doc_issue.yml&location={{ .Permalink }}&labels=status%2Ftriage">{{- T "requestChanges" -}}</a>
|
|
</p>
|
|
{{ end }}
|