Massive site refactoring
All checks were successful
Build and Publish Docker Image / build (push) Successful in 3m32s

This commit is contained in:
2026-06-16 23:47:56 -06:00
parent 3676eedea5
commit fbc4977ec6
57 changed files with 133 additions and 46 deletions

View File

@@ -0,0 +1,35 @@
{{ define "main" }}
{{ .Scratch.Set "scope" "terms" }}
{{ $showHero := .Params.showHero | default site.Params.taxonomy.showHero | default false }}
{{ if $showHero }}
{{ $heroStyle := print "hero/" site.Params.taxonomy.heroStyle ".html" }}
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
{{ partial $heroStyle . }}
{{ else }}
{{ partial "hero/basic.html" . }}
{{ end }}
{{- end -}}
<header class="mt-5">
{{ if .Params.showBreadcrumbs | default (site.Params.taxonomy.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title }}</h1>
<div class="mt-1 mb-2 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta/taxonomy.html" (dict "context" . "scope" "single") }}
</div>
</header>
{{ if .Content }}
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
<div class="min-w-0 min-h-0 max-w-prose">
{{ .Content }}
</div>
</section>
{{ end }}
<section class="flex flex-wrap gap-3 mt-8">
{{ range .Data.Terms }}
{{ partial "term-link/text.html" . }}
{{ end }}
</section>
{{ end }}

19
layouts/art/list.html Normal file
View File

@@ -0,0 +1,19 @@
{{ define "main" }}
{{ .Scratch.Set "scope" "list" }}
{{ if site.Params.list.showHero | default false }}
{{ $heroStyle := print "hero/" site.Params.list.heroStyle ".html" }}
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
{{ partial $heroStyle . }}
{{ else }}
{{ partial "hero/basic.html" . }}
{{ end }}
{{ end }}
<article>
<header>
<h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title | emojify }}</h1>
</header>
<section class="mt-8">
{{ .Content }}
</section>
</article>
{{ end }}

View File

@@ -0,0 +1,9 @@
<a
href="{{ .Page.RelPermalink }}"
class="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary-100 dark:bg-primary-900 text-primary-700 dark:text-primary-300 hover:bg-primary-200 dark:hover:bg-primary-800 transition-colors duration-200">
<span class="w-4 h-4">{{ partial "icon.html" "tag" }}</span>
<span class="font-medium">{{ .Page.Title }}</span>
{{ if site.Params.taxonomy.showTermCount | default true }}
<span class="text-sm text-primary-500 dark:text-primary-400">({{ .Count }})</span>
{{ end }}
</a>