Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

[BUG] New post doesn't show TOC #36

Open

Description

@xiaochi-liu

Hello. Thank you very much for this lovely theme. I like it.

I'm using the blogdown R package and .rmd (R Markdown) document to build my website.

However, I encountered a problem as follow:

Describe the bug

My new post doesn't show TOC, although I've set thetoc as yes.

Expected behaviour

show TOC.

Screenshots

Please see this post.

Build Environment

  • OS: macOS
  • Theme version/commit: just download several days ago
  • Hugo version: 0.80.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: macOS
  • Browser: Chrome

Additional Information

The YAML head of this post:

---
title: Writing Process
author: Xiaochi Liu
date: '2021-02-13'
slug: []
categories:
  - Scientific Writing
tags:
  - Scientific Writing
subtitle: ''
lastmod: '2021-02-13T22:28:04+11:00'
description: ''
summary: "Writing process for publication"
theme: classic
upd: ''
authorComment: ''
hiddenFromHomePage: no
hiddenFromSearch: no
resources:
  - name: featured-image
    src: featured-image.jpg

toc:
  enable: true
  auto: true
math:
  enable: yes
lightgallery: no
license: ''
---

And the full repo built by blogdown is here.

Many thanks for your kind guidance

Activity

  1. added
    bug
    on Feb 13, 2021
  2. self-assigned this
    on Feb 13, 2021
  3. uPagge commented on Feb 13, 2021

    @uPagge
    Owner

    Try to do this

    toc:
       enable: true
       keepStatic: false
       auto: true
    
  4. xiaochi-liu commented on Feb 13, 2021

    @xiaochi-liu
    Author

    Hello @uPagge. Thanks for your quick response.

    It still doesn't show the TOC.

  5. uPagge commented on Feb 13, 2021

    @uPagge
    Owner

    strange

    I'll try to see what the problem is and release a fix in a new release, I hope to release a new release within two weeks

  6. xiaochi-liu commented on Feb 13, 2021

    @xiaochi-liu
    Author

    Thanks!

    So when the new version released, I just need to delete the current themes/uBlogger folder on my device, then clone the repository to that themes directory, right?

  7. uPagge commented on Feb 13, 2021

    @uPagge
    Owner

    It depends on how you added the topic. I recommend looking at how git submodules works, which is a very good mechanism for hugo themes. If the theme is added as a subbmodule, then after the new release, you just need to go to the themes / uBlogger folder and run the git pull command.

  8. xiaochi-liu commented on Feb 13, 2021

    @xiaochi-liu
    Author

    Get it. Thank you very much @uPagge.

  9. uPagge commented on Feb 14, 2021

    @uPagge
    Owner

    @xiaochi-liu Were you able to somehow solve the problem?

  10. xiaochi-liu commented on Feb 14, 2021

    @xiaochi-liu
    Author

    not yet 😄

  11. added this to the v.2.0.0 milestone on Mar 3, 2021
  12. removed this from the v.2.0.0 milestone on Mar 19, 2021
  13. xzhws commented on Apr 8, 2021

    @xzhws

    I met the same issue where the [TOC] did not show.

  14. uPagge commented on Apr 10, 2021

    @uPagge
    Owner

    I will try to understand this problem in the near future.

  15. GregHilston commented on May 22, 2021

    @GregHilston

    table of contents are not being generated for my posts.

    I have the following section defined in my config.toml

        [params.page.toc]
            # whether to enable the table of the contents
            enable = true
    
            # whether to keep the static table of the contents in front of the post
            keepStatic = false
    
            # whether to make the table of the contents in the sidebar automatically collapsed
            auto = true
    

    $ hugo version

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

    uBlobber theme v2.0.2

  16. uPagge commented on May 23, 2021

    @uPagge
    Owner

    It would be great if someone put together a small project to demonstrate the problem

  17. xiaochi-liu commented on Jun 2, 2021

    @xiaochi-liu
    Author

    Hello, I'm using ## as my first-level headline but the toc doesn't show up.

    By the way, do I need to update the theme to see the result? And how should I update the theme?

  18. uPagge commented on Jun 4, 2021

    @uPagge
    Owner

    It depends on how you added the project. most likely you need to go to the theme / uBlogger folder and call "git pull" from the console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions