wizard

placeholder description
git clone git@git.shmage.xyz/wizard.git
Log | Files | Refs | README

commit 1d93766c82c402f605ac95996815e2b68738ea13
parent 4b83cd0f339293fe804bea3646555a230bc13f62
Author: Jordanne <challah@users.noreply.github.com>
Date:   Sun, 10 Oct 2021 09:42:58 -0400

Add datetime attribute (#17)

* Add datetime attribute
Diffstat:
Mlayouts/_default/single.html | 2+-
Mlayouts/_default/summary.html | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -2,7 +2,7 @@ <main> <article> <h1>{{ .Title }}</h1> - <time>{{ .Date.Format "02.01.2006 15:04" }}</time> + <time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time> <div> {{ .Content }} </div> diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html @@ -1,6 +1,6 @@ <article> <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> - <time>{{ .Date.Format "02.01.2006 15:04" }}</time> + <time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time> {{ range .Params.tags }} <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{ end }}