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

github.com/Fastbyte01/KeepIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Pignataro <16869546+Fastbyte01@users.noreply.github.com>2021-05-10 23:31:17 +0300
committerGitHub <noreply@github.com>2021-05-10 23:31:17 +0300
commit94304cd7fbfddbdc5c57fd4e0e8e00de2884f85a (patch)
treee67118096eed5d49439bd4fc68565928bee38be8 /layouts
parent9f1434a881b143fd119e8cc55c05120c49fe5539 (diff)
parent010d9098c1d8bc42ce83e7c7e44a4ee2fe45583e (diff)
Merge pull request #60 from Eumeryx/unified-date-format
added date format in config
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/_default/posts.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d7362e4..d9bfec5 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,10 +9,10 @@
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
<span class="archive-item-date">
- {{ .Date.Format "2 January 2006" }}
+ {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }}
</span>
</article>
{{ end }} {{ end }}
{{ partial "paginator.html" . }}
</div>
-{{end }} \ No newline at end of file
+{{end }}
diff --git a/layouts/_default/posts.html b/layouts/_default/posts.html
index 3496be6..4781eae 100644
--- a/layouts/_default/posts.html
+++ b/layouts/_default/posts.html
@@ -9,10 +9,10 @@
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
<span class="archive-item-date">
- {{ .Date.Format "2 January 2006" }}
+ {{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }}
</span>
</article>
{{ end }} {{ end }}
{{ partial "paginator.html" . }}
</div>
-{{end }} \ No newline at end of file
+{{end }}