Datum-Format

This commit is contained in:
Denys Konovalov 2023-02-22 12:32:28 +01:00
parent c53d4ff2e3
commit 23fca07393
4 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
<div class="card-body">
<ul class="list-inline mb-3">
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-calendar-today"></i>
{{ time.Format "02 Jan 2006" .PublishDate }}</li>
{{ time.Format "02. Jan 2006" .PublishDate }}</li>
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-fountain-pen-tip"></i> <a
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
</li>

View File

@ -2,7 +2,7 @@
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="card-body">
<ul class="list-inline mb-3">
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-calendar-today"></i> {{ time.Format "02 Jan 2006" .PublishDate }}</li>
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-calendar-today"></i> {{ time.Format "02. Jan 2006" .PublishDate }}</li>
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-fountain-pen-tip"></i> <a
href="{{ `author` | relLangURL }}/{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
</ul>

View File

@ -15,10 +15,10 @@
<li class="list-inline-item mr-4 mb-3 mb-md-0 text-light"><span class="font-weight-bold mr-2">{{ i18n "date" }}:
</span>{{ time.Format "02 Jan 2006" .PublishDate }}</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" }}:
</span>{{ range $index, $elements:= .Params.Categories }}<a
href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"> {{ if ne $index 0 }}, {{ end }}
{{ . | title }}</a> {{ end}}</li>

View File

@ -32,7 +32,7 @@
<a href="{{ .Permalink }}">
<h5 class="mt-0">{{ .Title }}</h5>
</a>
{{ time.Format "02 Jan 2006" .PublishDate }}
{{ time.Format "02. Jan 2006" .PublishDate }}
</div>
</div>
{{ end }}