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. 2
      layouts/partials/post-list.html

2
layouts/_default/single.html

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

2
layouts/partials/latest-posts.html

@ -6,7 +6,7 @@
{{ $url := replace .Permalink .Site.BaseURL "" }} {{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if and (ne $url "about/") }} {{ if and (ne $url "about/") }}
<li> <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> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}

2
layouts/partials/post-list.html

@ -3,7 +3,7 @@
{{ $url := replace .Permalink .Site.BaseURL "" }} {{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if ne $url "about/" }} {{ if ne $url "about/" }}
<li> <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> <a href='{{ .Permalink }}'>{{ .Title }} <h2>{{ .Description | markdownify }}</h2></a>
</li> </li>
{{ end }} {{ end }}

Loading…
Cancel
Save