-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to show the table of contents #7
Open
yihui
wants to merge
2
commits into
master
Choose a base branch
from
feature/show-toc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yihui
force-pushed
the
feature/show-toc
branch
2 times, most recently
from
July 9, 2017 17:46
cecb021
to
be471d6
Compare
yihui
force-pushed
the
feature/show-toc
branch
2 times, most recently
from
July 13, 2017 07:08
132bf32
to
b47be96
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
August 14, 2017 20:28
b47be96
to
de81e09
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
August 29, 2017 03:02
de81e09
to
85a341d
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
October 8, 2017 14:24
85a341d
to
3e341a9
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
October 27, 2017 03:17
3e341a9
to
429663d
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
August 30, 2018 15:02
858eb50
to
1a94e25
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
October 1, 2018 14:33
1a94e25
to
c47f304
Compare
So there is still no toc_float for html_page? |
yihui
force-pushed
the
feature/show-toc
branch
2 times, most recently
from
October 11, 2020 20:57
c5cd722
to
7c8d7c3
Compare
yihui
force-pushed
the
feature/show-toc
branch
from
February 5, 2024 14:59
c77e803
to
b1927ae
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It depends on whether your post is R Markdown or plain Markdown. For R Markdown, it is easy -- just add this to YAML:
Example: https://deploy-preview-7--hugo-xmin.netlify.com/post/2017/06/22/rmd-toc/
For plain Markdown posts, the template
single.html
has to be modified. For example, we can use a YAML parametertoc
to control whether to write out.TableOfContents
. Example: https://deploy-preview-7--hugo-xmin.netlify.com/about/The CSS style was defined in
style.css
(a lightgray border).