From 09957b7e11cecc285c3be83480fa9f7a364be94b Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 14 Jan 2024 13:44:33 -0500 Subject: [PATCH] Don't wrap {{ .Content }} in p tags Revert this once https://github.com/526avijitgupta/gokarna/pull/210 is merged --- layouts/partials/page.html | 11 ++++++ layouts/partials/post.html | 75 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 layouts/partials/page.html create mode 100644 layouts/partials/post.html diff --git a/layouts/partials/page.html b/layouts/partials/page.html new file mode 100644 index 0000000..0be4486 --- /dev/null +++ b/layouts/partials/page.html @@ -0,0 +1,11 @@ +
+ +
+

{{ .Title }}

+
+ +
+ {{ .Content }} +
+
+ diff --git a/layouts/partials/post.html b/layouts/partials/post.html new file mode 100644 index 0000000..2f17c68 --- /dev/null +++ b/layouts/partials/post.html @@ -0,0 +1,75 @@ +
+
+

{{ .Title }}

+ {{ .Description }} + + + +
+ +
+ {{ .Content }} + {{ if .Site.DisqusShortname }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} +
+ +
+ {{ if eq .Site.Params.TogglePreviousAndNextButtons "true" }} + {{ if or .PrevInSection .NextInSection }} + {{ partial "prev-next.html" . }} + {{ end }} + {{ end }} +
+ + + {{ if .Site.Params.ShowBackToTopButton }} + + {{ end }} + + {{ if .Site.Params.CustomCommentHTML }} +
+ {{ .Site.Params.CustomCommentHTML | safeHTML }} +
+ {{ end }} +