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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbimmer44 <david@rooikat.com>2019-01-29 12:39:18 +0300
committerbimmer44 <david@rooikat.com>2019-01-29 12:39:18 +0300
commitbe6702f0f443c0c92ba7d2b1ca57bcf8ea3314d5 (patch)
tree5543847a95dccdbd93ce517c76c84127d304f758
parentb09f6b67dd4ed8fa62daee1f45f732fd47e1abe4 (diff)
Further attempt to fix date format issue
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/index.html4
3 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 461fef5..869380f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -14,7 +14,7 @@
<div class="post-heading">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
- <span>{{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
+ <span>{{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
</div>
{{ .Content }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2261dc0..26fec55 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -13,7 +13,7 @@
<div class="post-heading">
<h1>{{ .Title }}</h1>
- <span class="post-date"><a href="{{ .Permalink }}"># {{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</a></span>
+ <span class="post-date"><a href="{{ .Permalink }}"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</a></span>
</div>
{{ .Content }}
@@ -26,4 +26,4 @@
</div>
</div>
-{{ partial "footer.html" . }} \ No newline at end of file
+{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 461fef5..d9930f2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,7 +14,7 @@
<div class="post-heading">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
- <span>{{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
+ <span>{{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
</div>
{{ .Content }}
@@ -32,4 +32,4 @@
</div>
</div>
-{{ partial "footer.html" . }} \ No newline at end of file
+{{ partial "footer.html" . }}