diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-07 10:21:01 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-07 10:21:01 +0300 |
commit | 5d20e1cae14ed1c025c536ecfbbb21cc2d7efbe6 (patch) | |
tree | cb89a85c078b2c17a69a5e6b26ef1216dfead0d1 /layouts | |
parent | 7ffbe45d665c34048803bb21b8e3002c8b605e94 (diff) |
Add localisation option for publishdate
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6e46c07..9134f96 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,7 +12,7 @@ {{- if .PublishDate }} <br> - <span>{{ i18n "on" }} </span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time> + <span>{{ i18n "on" }} </span><time datetime="{{ .PublishDate }}">{{ i18n "publishdate" . }}</time> {{- end }} </div> diff --git a/layouts/index.html b/layouts/index.html index 94c114a..5d946f5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ {{ range (.Paginate .Pages).Pages }} <a href="{{ .Permalink }}" class="catalogue-item"> <div> - <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ .PublishDate.Format "January 2, 2006" }}</time> + <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ i18n "publishdate" . }}</time> <h1 class="catalogue-title">{{ .Title }}</h1> <div class="catalogue-line"></div> |