summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-11-19 09:30:04 +0100
committerGitHub <noreply@github.com>2024-11-19 09:30:04 +0100
commit9d892aa386eebccb380d17924b8393f25b0d2e3f (patch)
tree2677377e8f5e0cc7402b20116c218585e79cfe38
parentaab4bd1dd51b69c0d28aada4f5fd80d058237c49 (diff)
parent31e6feecc09794795432b552e076aae7b71a9cd8 (diff)
Merge pull request #50 from jpvg10/translate-dates
-rw-r--r--hugo.toml1
-rw-r--r--layouts/partials/post-entry.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/hugo.toml b/hugo.toml
index 0456687..709ba78 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,5 +1,6 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
+defaultContentLanguage = 'en-us'
title = 'typo'
[module]
diff --git a/layouts/partials/post-entry.html b/layouts/partials/post-entry.html
index 2439632..1f57f23 100644
--- a/layouts/partials/post-entry.html
+++ b/layouts/partials/post-entry.html
@@ -5,7 +5,7 @@
{{ $dateFormat = .}}
{{ end }}
- <p class="line-date">{{ .Date.Format $dateFormat }} </p>
+ <p class="line-date">{{ .Date | time.Format $dateFormat }} </p>
<div>
<p class="line-title">