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

github.com/syui/hugo-theme-wave.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyui <syui@syui.cf>2018-03-21 05:15:49 +0300
committersyui <syui@syui.cf>2018-03-21 05:15:49 +0300
commit5f5fd71773655cb4ad43f0e7914d4949de3ed679 (patch)
tree5e364eb526658566e80c92a4296b803a2e45a933
parente97e19af386065c64ca9855eb35f94637d67efe6 (diff)
fix dateformat
-rw-r--r--layouts/_default/summary.html2
-rw-r--r--layouts/archive/single.html2
-rw-r--r--layouts/partials/article_header.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 6ebff97..114c351 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -19,7 +19,7 @@
</h1>
<div class="archive-article-date">
<!--<i class="fa fa-calendar"></i>-->
- <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
+ <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "2006-01-02" }}</time>
</div>
</header>
</div>
diff --git a/layouts/archive/single.html b/layouts/archive/single.html
index 593cc91..9a657c7 100644
--- a/layouts/archive/single.html
+++ b/layouts/archive/single.html
@@ -26,7 +26,7 @@
{{ .Content }}
{{ range (where .Site.Pages "Type" "post") }}
<h1>
- <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
+ <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "2006-01-02" }}</time>
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
</h1>
diff --git a/layouts/partials/article_header.html b/layouts/partials/article_header.html
index 73a4471..76a3260 100644
--- a/layouts/partials/article_header.html
+++ b/layouts/partials/article_header.html
@@ -3,7 +3,7 @@
<h1 class="article-title" itemprop="name">
<a href="{{ .Permalink }}" class="permalink">{{ .Title }}</a>
</h1>
- <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
+ <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "2006-01-02" }}</time>
<div class="article-meta">