mirror of https://github.com/luizdepra/hugo-coder.git

Luiz F. A. de Prá
25.11.2022 680c7ab860e70f29e3eba332dd67f0ba590f88c4
Fix date i18n
3 files modified
6 ■■■■ changed files
layouts/partials/list.html 2 ●●● patch | view | raw | blame | history
layouts/posts/li.html 2 ●●● patch | view | raw | blame | history
layouts/posts/single.html 2 ●●● patch | view | raw | blame | history
layouts/partials/list.html
@@ -12,7 +12,7 @@
  <ul>
    {{ range .Paginator.Pages }}
    <li>
      <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
      <span class="date">{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
      <a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
    </li>
    {{ end }}
layouts/posts/li.html
@@ -1,4 +1,4 @@
<li>
  <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
  <span class="date">{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
  <a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
</li>
layouts/posts/single.html
@@ -17,7 +17,7 @@
            <span class="posted-on">
              <i class="fa fa-calendar" aria-hidden="true"></i>
              <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
                {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
                {{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
              </time>
            </span>
            <span class="reading-time">