hugo-sid/hugo-blog-awesome

TOC setting bug

Closed this issue · 2 comments

jnkn6 commented

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

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

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.