Skip to content
Snippets Groups Projects
Commit 3b5b934a authored by Marek Nečada's avatar Marek Nečada
Browse files

Fork, CE-style dates

parent 084cc371
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<li> <li>
<div class="flex"> <div class="flex">
<a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
<time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
</div> </div>
</li> </li>
{{- end }} {{- end }}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="flex"> <div class="flex">
<a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
{{ if eq .Kind "page" }} {{ if eq .Kind "page" }}
<time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
{{ end }} {{ end }}
</div> </div>
</li> </li>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ if ne .Type "page" -}} {{ if ne .Type "page" -}}
<div class="post-date"> <div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">&middot; {{ .ReadingTime }} min read</span> <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
</div> </div>
{{- end }} {{- end }}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<li> <li>
<div class="flex"> <div class="flex">
<a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
<time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1., 2006" }}</time>
</div> </div>
</li> </li>
{{- end }} {{- end }}
......
...@@ -10,15 +10,14 @@ ...@@ -10,15 +10,14 @@
</h1> </h1>
<div class="post-date"> <div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> &middot; {{ .ReadingTime }} min read <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time> </div>
</div>
<div> <div>
{{ .Summary }} {{ .Summary }}
</div> </div>
<div class="read-more-link"> <div class="read-more-link">
<a href="{{ .Permalink }}">Read More</a> <a href="{{ .Permalink }}">...</a>
</div> </div>
</article> </article>
{{- end }} {{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment