From 33c9f863c88e4197e98c0098fe9107c00ec96cc2 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Mon, 30 Oct 2023 15:58:53 +0800 Subject: [PATCH] feat(year.html): add new shortcode to display the current year The `year.html` file is a new file that has been added. It contains a shortcode that displays the current year using the `now.Year` variable. This shortcode can be used in the layout templates to dynamically display the current year. --- layouts/shortcodes/year.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 layouts/shortcodes/year.html diff --git a/layouts/shortcodes/year.html b/layouts/shortcodes/year.html new file mode 100644 index 0000000..e7980c9 --- /dev/null +++ b/layouts/shortcodes/year.html @@ -0,0 +1 @@ +{{ now.Year }}