From 8a9dc091dc392c068903abea7429632da33dd3c1 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Thu, 23 Mar 2023 10:57:09 -0400 Subject: [PATCH] fixup and properly implement footnotes ; include a footnote in the main tip example --- config.toml | 2 -- content/tips/_example.md | 8 +++++++- themes/hugo-xmin/layouts/partials/page_meta.html | 2 +- themes/hugo-xmin/static/css/style.css | 8 ++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index 39e3fca..4c1ba56 100644 --- a/config.toml +++ b/config.toml @@ -14,8 +14,6 @@ ignoreFiles = [ '.gitignore', '.gitkeep' ] theme = ['hugo-xmin'] -footnotereturnlinkcontents = '↩' - uglyURLs = false [permalinks] tips = '/tips/:slug/' diff --git a/content/tips/_example.md b/content/tips/_example.md index 346ecdc..e8bb620 100644 --- a/content/tips/_example.md +++ b/content/tips/_example.md @@ -23,7 +23,7 @@ tags: {{< end_section >}} -Use [bbb]({{< ref "[category]/[file].md" >}}) for cross references +Use [bbb]({{< ref "[category]/[file].md" >}}) for cross references[^1] This sample post is mainly for [**blogdown**](https://github.com/rstudio/blogdown) users. If you do not use **blogdown**, you can skip the first section. @@ -98,3 +98,9 @@ A table (centered by default): | 5.4| 3.9| 1.7| 0.4|setosa | {{< end_section >}} + +## Footnotes + +[^1]: This is the footnote linked at the very top of the page + +{{< back_to_top >}} diff --git a/themes/hugo-xmin/layouts/partials/page_meta.html b/themes/hugo-xmin/layouts/partials/page_meta.html index 21f3d8c..1ea6877 100644 --- a/themes/hugo-xmin/layouts/partials/page_meta.html +++ b/themes/hugo-xmin/layouts/partials/page_meta.html @@ -3,7 +3,7 @@ {{ if in .Params.categories "anecdote" }} -

WARNING!
This page may be triggering, it contains a personal account of living with disability and may contain graphic, disturbing material for readers.

+

WARNING!
This page may be triggering, it contains a personal account of living with disability.

{{ end }} {{ if .Page.Params.toc }}
Jump to ToC diff --git a/themes/hugo-xmin/static/css/style.css b/themes/hugo-xmin/static/css/style.css index 016b23a..f7feaeb 100644 --- a/themes/hugo-xmin/static/css/style.css +++ b/themes/hugo-xmin/static/css/style.css @@ -61,6 +61,14 @@ table thead th { border-bottom: 1px solid #ddd; } th, td { padding: 5px; } thead, tfoot, tr:nth-child(even) { background: #eee; } +a.footnote-ref::before { + content: '[ '; +} + +a.footnote-ref::after { + content: ' ]'; +} + .anecdote-meta { text-decoration: none; color: #080808;