mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 05:29:54 +03:00
adding support for translating dates
This commit is contained in:
parent
4e760d1c8d
commit
3e7e8a78f6
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
baseURL = 'https://example.org/'
|
||||
languageCode = 'en-us'
|
||||
defaultContentLanguage = 'en-us'
|
||||
title = 'typo'
|
||||
|
||||
[module]
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue