From d19c41f6de51a352c805290f967caecdf21b7772 Mon Sep 17 00:00:00 2001 From: Alexandre Chazal Date: Thu, 18 Aug 2022 17:50:10 +0200 Subject: [PATCH] fix(layout): repair non rendering posts --- layouts/posts/single.html | 48 +++++++++++++++++++-------------------- static/link.svg | 1 + static/nextarrow.svg | 1 + static/prevarrow.svg | 1 + 4 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 static/link.svg create mode 100644 static/nextarrow.svg create mode 100644 static/prevarrow.svg diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 4924fc8..a3bb923 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,23 +1,17 @@ {{ define "head" }} {{ if .Params.featuredImg -}} - + {{- else if .Params.images -}} {{- range first 1 .Params.images -}} - + {{- end -}} {{- end -}} {{ end }} + {{ define "header" }} {{ partial "header.html" . }} {{ end }} + {{ define "main" }} {{- if (or .Params.images .Params.featuredImg) }}
@@ -29,17 +23,15 @@

{{ .Title }}

- {{ .Content | replaceRE "( - )" `${1}${3}` - | safeHTML }} + {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
- {{- if .Site.Params.relatedPosts }} {{- partial "related-posts.html" . -}} {{- end }} + {{- if .Site.Params.relatedPosts }} + {{- partial "related-posts.html" . -}} + {{- end }}
{{- if .Params.toc }} -