From 0ec23802f494035cf57cb438d63e6a7fe22a05d8 Mon Sep 17 00:00:00 2001 From: Vrifox Date: Sat, 15 May 2021 21:16:03 +0200 Subject: [PATCH] Moved and modified the appearance of the publish date to make the content more readable. --- assets/style.scss | 6 ++++++ layouts/_default/single.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index b421644..db2af0e 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -126,3 +126,9 @@ main { width: 100%; span { font-size: .8em; } } + +p.date-published { + margin-bottom: -30px; + font-size: smaller; + font-style: italic; +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a513dab..f7cec5e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,9 @@ {{- define "main" }}
-

{{ .Title }}

{{- if eq .Params.type "post" }} -

{{ .Date.Format "2. January 2006" }}

+

{{ .Date.Format "2. January 2006" }}

{{- end }} +

{{ .Title }}

{{ .Content -}}