changed how time/date are shown in summary

This commit is contained in:
Michael Clemens 2023-04-16 09:39:53 +02:00
parent 42bd540a2c
commit d5bc010629
3 changed files with 3 additions and 7 deletions

View File

@ -9,6 +9,7 @@
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "css/style.css?v1.41" | relURL }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">
{{- end }}

View File

@ -3,7 +3,7 @@
<article>
<h1>{{ .Title }}</h1>
{{ if .Params.showthedate | default "true" }}
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
<b><time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }} // </time></b>
{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
@ -13,5 +13,4 @@
</div>
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}

View File

@ -1,9 +1,5 @@
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<h1><a href="{{ .Permalink }}">[<time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }}</time>] {{ .Title }}</a></h1>
<div>
{{ .Summary }}
{{ if .Truncated }}