mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
- Rework the filtering system for guides to drop the use of the "products", "subjects", and "levels" taxonomies in favor of "tags" and "languages" - This change means that the existing taxonomy functionality integrates better with the guides filtering, and there are fewer parameters to keep in mind when adding metadata to a guide - Only two taxonomies instead of three - Only one of those taxonomies are guides-specific (languages) - The other taxonomy (tags) works for all content - Updates how tags and tag pages are rendered in general Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
26 lines
706 B
HTML
26 lines
706 B
HTML
{{ define "left" }}
|
|
{{ partial "sidebar/mainnav.html" . }}
|
|
{{ partial "sidebar/tags.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<article class="prose max-w-none dark:prose-invert">
|
|
{{ partial "breadcrumbs.html" . }}
|
|
<h1 class="scroll-mt-36 flex items-center">
|
|
<span class="icon-svg icon-lg pb-2">{{ partialCached "icon" "tag" "tag" }}</span>
|
|
</span>{{ .Title }}</span>
|
|
</h1>
|
|
{{ .Content }}
|
|
{{- range .Pages.GroupBy "Type" }}
|
|
<h2>{{ (site.GetPage .Key).LinkTitle }}</h2>
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</article>
|
|
{{ end }}
|