diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-09-27 11:23:42 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-09-27 11:23:42 +0000 |
| commit | 4f83f002ad78ae3612df232bdb355859a25a6052 (patch) | |
| tree | b03400ce3526a3335ae9a0e4d6f490c73d23bc75 /layouts/partials/docs/date.html | |
| parent | blog title and taxonomy fix (diff) | |
fix tag display in blog
Diffstat (limited to '')
| -rw-r--r-- | layouts/partials/docs/date.html | 6 |
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 ) -}} |
