diff options
| author | Juan Pablo Valencia <juan.valencia10a@gmail.com> | 2024-11-18 20:10:08 +0200 | 
|---|---|---|
| committer | Juan Pablo Valencia <juan.valencia10a@gmail.com> | 2024-11-18 20:10:31 +0200 | 
| commit | 31e6feecc09794795432b552e076aae7b71a9cd8 (patch) | |
| tree | 687a42b8dffbd5ef85875ad8aa35d3d25497b4ac | |
| parent | f025f972e0b1ffb8df288be632bb3c34a58b66e8 (diff) | |
adding support for translating dates
| -rw-r--r-- | hugo.toml | 1 | ||||
| -rw-r--r-- | layouts/partials/post-entry.html | 2 | 
2 files changed, 2 insertions, 1 deletions
| @@ -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"> | 
