From 76d862e2150b8735857306b99dc60edb442cb857 Mon Sep 17 00:00:00 2001 From: danix Date: Fri, 3 Feb 2023 17:52:56 +0100 Subject: [PATCH] added quote shortcode and articles archetype. general cleanup of the footer partial. --- archetypes/articles.md | 17 +++++++++++++++++ layouts/partials/footer.html | 2 +- layouts/shortcodes/quote.html | 19 +++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 archetypes/articles.md create mode 100644 layouts/shortcodes/quote.html diff --git a/archetypes/articles.md b/archetypes/articles.md new file mode 100644 index 0000000..3c4021f --- /dev/null +++ b/archetypes/articles.md @@ -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 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 747cd7b..5738379 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,7 +5,7 @@
{{- partial "footer-addition.html" . -}} diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html new file mode 100644 index 0000000..cc99181 --- /dev/null +++ b/layouts/shortcodes/quote.html @@ -0,0 +1,19 @@ +
+

+ {{.Inner}} +

+ {{ if .Get "source" }} + + {{ end }} +
-- 2.20.1