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