summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/quote.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html
new file mode 100644
index 0000000..05d0c94
--- /dev/null
+++ b/layouts/shortcodes/quote.html
@@ -0,0 +1,19 @@
+<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 }}
+</blockquote>