diff options
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/quote.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/quote.html | 15 |
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> |
