summaryrefslogtreecommitdiff
path: root/layouts/partials/docs/date.html
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-09-27 11:23:42 +0000
committeraethrvmn <me@aethrvmn.gr>2025-09-27 11:23:42 +0000
commit4f83f002ad78ae3612df232bdb355859a25a6052 (patch)
treeb03400ce3526a3335ae9a0e4d6f490c73d23bc75 /layouts/partials/docs/date.html
parentblog title and taxonomy fix (diff)
fix tag display in blog
Diffstat (limited to '')
-rw-r--r--layouts/partials/docs/date.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/docs/date.html b/layouts/partials/docs/date.html
new file mode 100644
index 0000000..d33cdbe
--- /dev/null
+++ b/layouts/partials/docs/date.html
@@ -0,0 +1,6 @@
+<!--
+ Returns formatted date.
+ Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
+-->
+{{- $format := default "January 2, 2006" .Format -}}
+{{- return (time.Format $format .Date | lower ) -}}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.