added quote shortcode and articles archetype. general cleanup of the footer partial.
[theme-danix.xyz.git] / layouts / shortcodes / quote.html
diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html
new file mode 100644 (file)
index 0000000..cc99181
--- /dev/null
@@ -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>