Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vimux/blank.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordanne <challah@users.noreply.github.com>2021-10-10 16:42:58 +0300
committerGitHub <noreply@github.com>2021-10-10 16:42:58 +0300
commit1d93766c82c402f605ac95996815e2b68738ea13 (patch)
tree4ab245c4199ebc32150d9cad63f8c389fa3d4717
parent4b83cd0f339293fe804bea3646555a230bc13f62 (diff)
Add datetime attribute (#17)HEADmaster
* Add datetime attribute
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/summary.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 55b7c30..02e93f8 100644
--- 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
index 9acf434..c84e58f 100644
--- 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 }}