summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/quote.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
commit631547a75142326a7c71bdf123e1475217a5ad73 (patch)
treef3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /layouts/shortcodes/quote.html
parent77ccbe72fad5a4870185fff374f75471c16a9043 (diff)
downloaddanixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz
danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'layouts/shortcodes/quote.html')
-rw-r--r--layouts/shortcodes/quote.html32
1 files changed, 14 insertions, 18 deletions
diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html
index 05d0c94..1ed5c3c 100644
--- a/layouts/shortcodes/quote.html
+++ b/layouts/shortcodes/quote.html
@@ -1,19 +1,15 @@
-<blockquote class="blockquote">
- <p>
- {{.Inner}}
- </p>
- {{ if .Get "source" }}
- <footer class="blockquote-footer">
- <cite title="by: {{ with .Get "source"}}{{.}}{{ end }}">
- {{ with .Get "src"}}
- by
- <a href="{{.}}" target="_blank" rel="noopener noreferrer">
- {{ end }}
- {{ with .Get "source" }}{{.}}{{ end }}
- {{ with .Get "src"}}
- </a>
- {{ end }}
- </cite>
- </footer>
- {{ end }}
+{{- $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>