fix date
This commit is contained in:
parent
535aa50586
commit
51ffcc72cb
@ -14,7 +14,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="list-inline mb-3">
|
<ul class="list-inline mb-3">
|
||||||
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i>
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i>
|
||||||
{{ .PublishDate.Format "02 Jan, 2006" }}</li>
|
{{ time.Format "02 Jan 2006" .PublishDate }}</li>
|
||||||
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
|
||||||
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
|
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="list-inline mb-3">
|
<ul class="list-inline mb-3">
|
||||||
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i> {{ .PublishDate.Format "02 Jan, 2006" }}</li>
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i> {{ time.Format "02 Jan 2006" .PublishDate }}</li>
|
||||||
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
|
||||||
href="{{ `author` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
|
href="{{ `author` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
|
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
|
||||||
|
|
||||||
<li class="list-inline-item mr-4 mb-3 mb-md-0 text-light"><span class="font-weight-bold mr-2">{{ i18n "date" }}
|
<li class="list-inline-item mr-4 mb-3 mb-md-0 text-light"><span class="font-weight-bold mr-2">{{ i18n "date" }}
|
||||||
:</span>{{ .PublishDate.Format "02 Jan, 2006" }}</li>
|
:</span>{{ time.Format "02 Jan, 2006" .PublishDate }}</li>
|
||||||
|
|
||||||
<li class="list-inline-item mr-4 mb-3 mb-md-0 text-light"><span class="font-weight-bold mr-2">{{ i18n "category" }}
|
<li class="list-inline-item mr-4 mb-3 mb-md-0 text-light"><span class="font-weight-bold mr-2">{{ i18n "category" }}
|
||||||
:</span>{{ range $index, $elements:= .Params.Categories }}<a
|
:</span>{{ range $index, $elements:= .Params.Categories }}<a
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
{{- if not (eq (len .Site.Taxonomies.tags) 0) }}
|
{{- if not (eq (len .Site.Taxonomies.tags) 0) }}
|
||||||
<ul class="list-inline tag-list">
|
<ul class="list-inline tag-list">
|
||||||
{{- range $name, $items := .Site.Taxonomies.tags }}
|
{{- range $name, $items := .Site.Taxonomies.tags }}
|
||||||
<li class="list-inline-item mb-2"><a href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
|
<li class="list-inline-item mb-2"><a href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<h5 class="mt-0">{{ .Title }}</h5>
|
<h5 class="mt-0">{{ .Title }}</h5>
|
||||||
</a>
|
</a>
|
||||||
{{ .PublishDate.Format "02 Jan 2006" }}
|
{{ time.Format "02 Jan 2006" .PublishDate }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user