fixup and properly implement footnotes ; include a footnote in the main tip example

This commit is contained in:
KemoNine 2023-03-23 10:57:09 -04:00
parent c130163c71
commit 8a9dc091dc
4 changed files with 16 additions and 4 deletions

View file

@ -14,8 +14,6 @@ ignoreFiles = [ '.gitignore', '.gitkeep' ]
theme = ['hugo-xmin'] theme = ['hugo-xmin']
footnotereturnlinkcontents = '↩'
uglyURLs = false uglyURLs = false
[permalinks] [permalinks]
tips = '/tips/:slug/' tips = '/tips/:slug/'

View file

@ -23,7 +23,7 @@ tags:
{{< end_section >}} {{< end_section >}}
Use <code>[bbb]({{&lt; ref "[category]/[file].md" &gt;}})</code> for cross references Use <code>[bbb]({{&lt; ref "[category]/[file].md" &gt;}})</code> 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. 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 | | 5.4| 3.9| 1.7| 0.4|setosa |
{{< end_section >}} {{< end_section >}}
## Footnotes
[^1]: This is the footnote linked at the very top of the page
{{< back_to_top >}}

View file

@ -3,7 +3,7 @@
<a id="page_menu" /> <a id="page_menu" />
{{ if in .Params.categories "anecdote" }} {{ if in .Params.categories "anecdote" }}
<h4><span class="title anecdote-meta">WARNING!<br />This page may be triggering, it contains a <em>personal</em> account of living with disability and may contain graphic, disturbing material for readers.</span></h4> <h4><span class="title anecdote-meta">WARNING!<br />This page may be triggering, it contains a <em>personal</em> account of living with disability.</span></h4>
{{ end }} {{ end }}
{{ if .Page.Params.toc }} {{ if .Page.Params.toc }}
<a class="back_to_top" href="#top">Jump to ToC</a> <a class="back_to_top" href="#top">Jump to ToC</a>

View file

@ -61,6 +61,14 @@ table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; } th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; } thead, tfoot, tr:nth-child(even) { background: #eee; }
a.footnote-ref::before {
content: '[ ';
}
a.footnote-ref::after {
content: ' ]';
}
.anecdote-meta { .anecdote-meta {
text-decoration: none; text-decoration: none;
color: #080808; color: #080808;