Fork, CE-style dates
This commit is contained in:
parent
084cc371e4
commit
3b5b934a6c
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
||||||
module github.com/alexandrevicenzi/soho
|
module github.com/texnokrates/soho
|
||||||
|
|
||||||
go 1.12
|
go 1.12
|
||||||
|
|
|
@ -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 @@
|
||||||
<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 @@
|
||||||
|
|
||||||
{{ 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">· {{ .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 @@
|
||||||
<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 @@
|
||||||
</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> · {{ .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 }}
|
||||||
|
|
Loading…
Reference in New Issue