added quote shortcode and articles archetype. general cleanup of the footer partial.
authordanix <danix@danix.xyz>
Fri, 3 Feb 2023 16:52:56 +0000 (17:52 +0100)
committerdanix <danix@danix.xyz>
Fri, 3 Feb 2023 16:52:56 +0000 (17:52 +0100)
archetypes/articles.md [new file with mode: 0644]
layouts/partials/footer.html
layouts/shortcodes/quote.html [new file with mode: 0644]

diff --git a/archetypes/articles.md b/archetypes/articles.md
new file mode 100644 (file)
index 0000000..3c4021f
--- /dev/null
@@ -0,0 +1,17 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+author: "{{ $.Site.Params.author_name }}"
+format: ""
+excerpt: ""
+featured_image: ""
+categories:
+  - "add"
+  - "yours"
+tags:
+  - "tag me"
+
+---
+
+*enjoy your new article*
\ No newline at end of file
index 747cd7b..5738379 100644 (file)
@@ -5,7 +5,7 @@
        <div>
                <ul>
                        <li><a href="{{.Site.BaseURL}}sitemap.xml" target="_blank">sitemap</a></li>
-                       <li><a href="{{.Site.BaseURL}}/is/legal" target="_blank">Privacy Policy</a></li>
+                       <li><a href="{{ ref . "legal" }}">Privacy Policy</a></li>
                </ul>
        </div>
        {{- partial "footer-addition.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>