-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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
Table of Contents support #2100
Comments
I see you have solved this issue (#2357). Please mark this issue as resolved. For reference, to include a toc put |
@mendax1234 I would appreciate if you make a pull request with the fixes you made to toc on your website. academicpages does not show the toc in the sidebar as it should. |
@Samir-Rashid Hi friend. I just put {% include toc %} in the markdown file (about.md), but it seems that It takes up space in the middle of my webpage instead of being on the right side. Is there a way to fix this? My code is as below:
|
@Shunqiang-Feng The Markdown files are the main content that is rendered on the right side of the page, in order to adjust the table of contents you need to go into the template files themselves. |
Thanks for your reply. I tried to modify the default.yaml, but it also failed. Do you have any suggestion?
|
@Shunqiang-Feng You can see how to change the styling in this PR #2450. The HTML for the TOC itself is available in this file for editing https://github.com/academicpages/academicpages.github.io/blob/master/_includes/toc. |
oh sorry, I mean, I add " {% include toc %}" in the deafult.html as above. However, my page shows this in the right top side. I am sorry that I didnot find solution in the #2450 you mentioned, do you have any advice? |
I think I put the {% include toc %} incorrectly |
I am not sure. You can debug the styling in the file which is edited in my PR. |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
In the official minimal mistakes repo, there is a table of contents function which is integrated in the
single
layout. But in the academicspage fork, this function is missing. Enabling thetoc
function can make blog posts more clear.Describe the solution you'd like
A clear and concise description of what you want to happen.
Add
jekyell-toc
plugin. Try to refer to what minimal mistakes has done already. Although I think there are much to change.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I haven't thought about the alternative since this function is not available on academicpages now.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: