From 7b7fa3288225c846cd35abd656597d2d23b18292 Mon Sep 17 00:00:00 2001 From: f-dinucci Date: Tue, 31 May 2022 22:08:35 +0200 Subject: [PATCH] fix[footer]: allow defining markup language Custom footer is currently rendered through .RenderString, that defaults to page's markup language, but page and footer could be written in two different languages (eg. footer in Markdown and page in Asciidoc). In this case the footer wouldn't be rendered correctly unless the markup language used is specified. Now it is possible. --- exampleSite/data/site/footers.toml | 1 + layouts/partials/footer.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/data/site/footers.toml b/exampleSite/data/site/footers.toml index f6fa29b..87dd7aa 100644 --- a/exampleSite/data/site/footers.toml +++ b/exampleSite/data/site/footers.toml @@ -1,4 +1,5 @@ # Common footer to use site-wide [[siteFooter]] text = "Powered by [Hugo](https://gohugo.io/) with [Simple Intro theme](https://github.com/qub1750ul/hugo-simpleIntro) - " + markup = "markdown" # More footers could be defined to be used in specific pages/layouts diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a815073..ad9338f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@