From 7785334f5ee33afd76fe86ed88b4892ba0019afe Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Fri, 9 Apr 2021 00:39:03 +0200 Subject: [PATCH] [meta] Fix list display of tech posts --- .gitignore | 2 +- layouts/section/tech.html | 2 +- layouts/tech/summary.html | 10 +++------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 2b2c1a13..74d73e51 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -public_html +public hugo diff --git a/layouts/section/tech.html b/layouts/section/tech.html index abb4b7b8..f85dd4dd 100644 --- a/layouts/section/tech.html +++ b/layouts/section/tech.html @@ -7,7 +7,7 @@ useful (or at least amusing). Got something to add / correct? I' love your feedback. -
+
{{ range where .Data.Pages "Section" "tech" }} {{ .Render "summary" }} {{ end }} diff --git a/layouts/tech/summary.html b/layouts/tech/summary.html index a3a12e86..0b0d2b75 100644 --- a/layouts/tech/summary.html +++ b/layouts/tech/summary.html @@ -1,7 +1,3 @@ - -

{{.Title}}

-
-{{ .Date.Format "January, 02th 2006" }} -
-{{ .Summary | truncate 200 "" }} - +
+

{{.Title}} ({{ .Date.Format "January, 02th 2006" }})

+