mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +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"
|
||||
theme = "academic"
|
||||
enableEmoji = true
|
||||
footnotereturnlinkcontents = "<sup>^</sup>"
|
||||
|
||||
# Enable comments by entering your Disqus shortname
|
||||
disqusShortname = ""
|
||||
|
|
|
@ -70,6 +70,15 @@ I :heart: Academic :smile:
|
|||
|
||||
> 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
|
||||
|
||||
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. */
|
||||
*[id]:before {
|
||||
*[id]:not([id^="fn"]):before {
|
||||
display: block;
|
||||
content: " ";
|
||||
margin-top: -70px;
|
||||
|
@ -828,7 +828,7 @@ nav#navbar-main li {
|
|||
}
|
||||
|
||||
/* Prevent navbar hiding initial content when jumping to in-page anchor. */
|
||||
*[id]:before {
|
||||
*[id]:not([id^="fn"]):before {
|
||||
margin-top: -50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue