summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/shortcodes
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 22:05:38 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 22:05:38 +0200
commitd32ef68eabe6fb8d044d936d2e59909cd613920d (patch)
treec7f7794fd2d97821ba944bc9856da73e75a51f70 /themes/danix-xyz-hacker/layouts/shortcodes
parent134d00e5bd0f15113e256c8446931d830985fbf4 (diff)
downloaddanixxyz-d32ef68eabe6fb8d044d936d2e59909cd613920d.tar.gz
danixxyz-d32ef68eabe6fb8d044d936d2e59909cd613920d.zip
Implement taxonomy system for tags and categories
- Enable tags and categories taxonomies in hugo.toml - Create taxonomy/list.html for archive pages (/tags, /categories) - Create taxonomy/term.html for individual term pages (/tags/example) - Add quote shortcode for quote-type articles - Both templates reuse article-list-item partial for consistent styling Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes')
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/quote.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/quote.html b/themes/danix-xyz-hacker/layouts/shortcodes/quote.html
new file mode 100644
index 0000000..1ed5c3c
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/quote.html
@@ -0,0 +1,15 @@
+{{- $source := .Get "source" -}}
+{{- $src := .Get "src" -}}
+
+<blockquote class="my-8 pl-6 border-l-4 border-accent/50 italic text-text-dim">
+ <p class="text-lg">{{ .Inner }}</p>
+ {{- if $source -}}
+ <footer class="mt-4 text-sm not-italic text-text-dim">
+ {{- if $src -}}
+ — <a href="{{ $src }}" class="text-accent hover:underline">{{ $source }}</a>
+ {{- else -}}
+ — {{ $source }}
+ {{- end -}}
+ </footer>
+ {{- end -}}
+</blockquote>