From 74329c51844759d20e973f30fdcc173bf833be95 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 29 Apr 2024 19:56:50 +0200 Subject: Removed unnecessary homeIntro parameter, cleaned up layouts --- layouts/_default/single.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9a478f7..c0f41c5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,28 +2,29 @@ {{/* Intro */}} -
+
{{/* Title and Summary */}}

{{ .Title }}

- {{if .Param "summary" }} -

{{ .Summary }}

+ {{ with .Param "summary" }} +

{{ . }}

{{ end }} {{/* Reading Time */}}

- {{if .Date }} - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} + {{ with .Date }} + {{ $dateMachine := . | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := . | time.Format ":date_long" }} - - {{end}} - {{if (.Param "readTime")}} - {{.ReadingTime}} min + + {{ if .Param "readTime" }} + - + {{ .ReadingTime }} min {{end }}

-- cgit v1.2.3