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 title visible when disabled through a Page Parameter #780

Closed
3 tasks done
Rubonnek opened this issue Nov 14, 2022 · 0 comments · Fixed by #782
Closed
3 tasks done

TOC title visible when disabled through a Page Parameter #780

Rubonnek opened this issue Nov 14, 2022 · 0 comments · Fixed by #782
Labels
bug Something isn't working

Comments

@Rubonnek
Copy link
Contributor

Prerequisites

Describe the issue

Regardless of whether the toc is enabled or not, i18n table_of_contents is shown.

Steps to reproduce

Enable or disable toc on a small screen. You'll see the i18n table_of_contents in the post.

Expected behavior

When toc is disabled, i18n table_of_contents should not be shown.

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Firefox

What version of theme are you using?

v1.0.0-alpha.14.0.20221107093149-e813bc499af2

What version of Hugo are you using?

hugo v0.105.0+extended linux/amd64 BuildDate=unknown

What version of Node.js are you using?

v16.18.0

What version of Git are you using?

2.38.1

Additional context

The screenshot below has been taken after applying the following diff:

diff --git a/exampleSite/content/about/index.md b/exampleSite/content/about/index.md
index 502f2e05..45befcae 100644
--- a/exampleSite/content/about/index.md
+++ b/exampleSite/content/about/index.md
@@ -7,6 +7,7 @@ author = "Hugo Authors"
 reward = false
 postDate = false
 readingTime = false
+toc = false
 +++

Notice the Contents string below:

2022-11-14-113736_783x1026_scrot

@Rubonnek Rubonnek added the bug Something isn't working label Nov 14, 2022
@Rubonnek Rubonnek changed the title TOC visible when disabled through a Page Parameter TOC title visible when disabled through a Page Parameter Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant