Browse Source

Print dates in german locale order

master
Schneider 8 years ago
parent
commit
cb25f5ce58
  1. 2
      layouts/_default/single.html
  2. 2
      layouts/partials/latest-posts.html
  3. 4
      layouts/partials/post-list.html

2
layouts/_default/single.html

@ -7,7 +7,7 @@
<header>
<h1>{{ .Title }}</h1>
<h2 class="headline">
{{ .Date.Format "January 2, 2006" }}
{{ .Date.Format "2. January 2006" }}
<br>
{{ with .Params.tags }}
{{ if ge (len .) 1 }}

2
layouts/partials/latest-posts.html

@ -6,7 +6,7 @@
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if and (ne $url "about/") }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "2. Jan" }}</aside></a>
</li>
{{ end }}
{{ end }}

4
layouts/partials/post-list.html

@ -3,9 +3,9 @@
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if ne $url "about/" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "2. Jan" }}</aside></a>
<a href='{{ .Permalink }}'>{{ .Title }} <h2>{{ .Description | markdownify }}</h2></a>
</li>
{{ end }}
{{ end }}
</ul>
</ul>
Loading…
Cancel
Save