Skip to content

Commit

Permalink
adding support for translating dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvg10 committed Nov 18, 2024
1 parent 4e760d1 commit 3e7e8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
defaultContentLanguage = 'en-us'
title = 'typo'

[module]
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/post-entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 3e7e8a7

Please sign in to comment.