danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added all files from previous iterations
[theme-danix.xyz.git]
/
layouts
/
partials
/
funcs
/
datepublish.html
diff --git a/layouts/partials/funcs/datepublish.html
b/layouts/partials/funcs/datepublish.html
new file mode 100644
(file)
index 0000000..
235bbe0
--- /dev/null
+++ b/
layouts/partials/funcs/datepublish.html
@@ -0,0
+1,3
@@
+{{ $dateTime := .PublishDate.Format "2006-01-02" }}
+{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>