Moved and modified the appearance of the publish date to make the content more readable.

This commit is contained in:
Vrifox 2021-05-15 21:16:03 +02:00
parent a4ca133fe9
commit 0ec23802f4
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 8 additions and 2 deletions

View file

@ -126,3 +126,9 @@ main {
width: 100%; width: 100%;
span { font-size: .8em; } span { font-size: .8em; }
} }
p.date-published {
margin-bottom: -30px;
font-size: smaller;
font-style: italic;
}

View file

@ -1,9 +1,9 @@
{{- define "main" }} {{- define "main" }}
<main> <main>
<h1 class="title">{{ .Title }}</h1>
{{- if eq .Params.type "post" }} {{- if eq .Params.type "post" }}
<p title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Format "2. January 2006" }}</p> <p class="date-published" title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Format "2. January 2006" }}</p>
{{- end }} {{- end }}
<h1 class="title">{{ .Title }}</h1>
{{ .Content -}} {{ .Content -}}
<aside> <aside>
{{- with .Params.topics }} {{- with .Params.topics }}