mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
Improve support for Markdown footnotes (fix #61)
This commit is contained in:
parent
f8bf5c1b88
commit
605902a884
3 changed files with 12 additions and 2 deletions
|
@ -4,6 +4,7 @@ copyright = "© 2016 Your Name"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
theme = "academic"
|
theme = "academic"
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
footnotereturnlinkcontents = "<sup>^</sup>"
|
||||||
|
|
||||||
# Enable comments by entering your Disqus shortname
|
# Enable comments by entering your Disqus shortname
|
||||||
disqusShortname = ""
|
disqusShortname = ""
|
||||||
|
|
|
@ -70,6 +70,15 @@ I :heart: Academic :smile:
|
||||||
|
|
||||||
> This is a blockquote.
|
> This is a blockquote.
|
||||||
|
|
||||||
|
## Footnotes
|
||||||
|
|
||||||
|
I have more [^1] to say.
|
||||||
|
|
||||||
|
[^1]: Footnote example.
|
||||||
|
|
||||||
|
I have more [^1] to say.
|
||||||
|
[^1]: Footnote example.
|
||||||
|
|
||||||
## Code highlighting
|
## Code highlighting
|
||||||
|
|
||||||
Pass the *language* of the code, such as `python`, as a parameter after three backticks:
|
Pass the *language* of the code, such as `python`, as a parameter after three backticks:
|
||||||
|
|
|
@ -772,7 +772,7 @@ footer a#back_to_top i {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prevent navbar hiding initial content when jumping to in-page anchor. */
|
/* Prevent navbar hiding initial content when jumping to in-page anchor. */
|
||||||
*[id]:before {
|
*[id]:not([id^="fn"]):before {
|
||||||
display: block;
|
display: block;
|
||||||
content: " ";
|
content: " ";
|
||||||
margin-top: -70px;
|
margin-top: -70px;
|
||||||
|
@ -828,7 +828,7 @@ nav#navbar-main li {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prevent navbar hiding initial content when jumping to in-page anchor. */
|
/* Prevent navbar hiding initial content when jumping to in-page anchor. */
|
||||||
*[id]:before {
|
*[id]:not([id^="fn"]):before {
|
||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue