From 04b6bd02037f01bca46492865daec9f2de06ad3f Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 30 Jul 2021 23:04:31 +0200 Subject: [PATCH] feat: Create partial year --- layouts/partials/year.html | 1 + layouts/shortcodes/year.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/year.html diff --git a/layouts/partials/year.html b/layouts/partials/year.html new file mode 100644 index 0000000..c1b06a4 --- /dev/null +++ b/layouts/partials/year.html @@ -0,0 +1 @@ +{{- now.Format "2006" -}} diff --git a/layouts/shortcodes/year.html b/layouts/shortcodes/year.html index c1b06a4..b870c65 100644 --- a/layouts/shortcodes/year.html +++ b/layouts/shortcodes/year.html @@ -1 +1 @@ -{{- now.Format "2006" -}} +{{ partial "year" . }}