Skip to content
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

TOC setting bug #120

Closed
jnkn6 opened this issue Sep 20, 2023 · 2 comments · Fixed by #124
Closed

TOC setting bug #120

jnkn6 opened this issue Sep 20, 2023 · 2 comments · Fixed by #124

Comments

@jnkn6
Copy link
Contributor

jnkn6 commented Sep 20, 2023

Describe the bug
Cannot turn off TOC for a blog post when global setting of TOC is on.

Steps to reproduce

  1. set global TOC setting as true
[params]
  toc = true # set to false to disable table of contents 'globally'
  1. Turn off TOC setting for some post.
+++
title = "About"
toc = false
+++

Expected behavior
Should overwrite global config

@hugo-sid
Copy link
Owner

Thanks for reporting. I will implement a fix for this.

@hugo-sid
Copy link
Owner

hugo-sid commented Sep 23, 2023

Please see https://hba.sid.one/posts/table-of-content/ for documentation regarding disabling ToC on certain blog posts.

Feel free to reopen this issue if you encounter any problem.

If this theme has helped you, please consider supporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants