1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/layouts/_partials/github-links.html
David Karlsson ee71c80562 chore: migrate icons from Material Symbols to Heroicons
Replaces @material-symbols/svg-400 (5.5 MB) with heroicons (488 KB) — an
11x reduction in icon asset size. Heroicons uses a single consistent
distribution format (24px solid SVGs, fill="currentColor") eliminating
the need for the separate utils/svg.html partial, the icon-svg-stroke CSS
utility, and the dual-path resolution logic in icon.html.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-05-18 12:05:54 +02:00

26 lines
926 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 icon-sm">
{{ partialCached "icon" "pencil-square" "pencil-square" }}
</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 icon-sm">
{{ partialCached "icon" "flag" "flag" }}
</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 }}