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

View File

@ -3,7 +3,7 @@
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ if .Params.showthedate | default "true" }} {{ 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 }} {{ end }}
{{ range .Params.tags }} {{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
@ -13,5 +13,4 @@
</div> </div>
</article> </article>
</main> </main>
{{ partial "sidebar.html" . }}
{{ end }} {{ end }}

View File

@ -1,9 +1,5 @@
<article> <article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> <h1><a href="{{ .Permalink }}">[<time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }}</time>] {{ .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 }}
<div> <div>
{{ .Summary }} {{ .Summary }}
{{ if .Truncated }} {{ if .Truncated }}