From 4c212e8f64f185140849652351c3c373467db610 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 10 Dec 2023 01:07:40 +0100 Subject: [PATCH] Add footnotes support --- layouts/partials/content-info.html | 13 +++++++++++++ layouts/partials/content.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/layouts/partials/content-info.html b/layouts/partials/content-info.html index 634a082..d1f7296 100644 --- a/layouts/partials/content-info.html +++ b/layouts/partials/content-info.html @@ -1,4 +1,15 @@
+ {{ if .Params.Footnotes }} +
+

Footnotes

+
    + {{ range $i, $e := .Params.Footnotes }} +
  • {{ markdownify $e }}
  • + {{ end }} +
+
+ {{ end }} + {{ if .Params.Sources }}

Sources

@@ -9,6 +20,7 @@
{{ end }} + {{ if .Params.Changelog }}

Changelog

@@ -26,4 +38,5 @@
{{ end }} +
diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 9b75345..353a837 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -31,7 +31,7 @@
{{ .Content }}
- {{ if or .Params.Sources .Params.Changelog }} + {{ if or (or .Params.Sources .Params.Changelog) .Params.Footnotes }}
{{ partial "content-info.html" . }} {{ end }}