Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

[BUG] Utterances comment not shown when use right side TOC #374

Open
beihai0xff opened this issue Jan 8, 2022 · 0 comments
Open

[BUG] Utterances comment not shown when use right side TOC #374

beihai0xff opened this issue Jan 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@beihai0xff
Copy link

Describe the bug

Utterances comment not not showing when use right side TOC, and the HTML content is

<div id="comments"><div id="utterances"></div>
    <noscript>
        Please enable JavaScript to view the comments powered by <a href="https://utteranc.es/">Utterances</a>.
    </noscript>
</div>

But if I use Static TOC, the utterances comment return to normal, like the page wingsxdu.com/about

Expected behavior

I want to use the right side TOC and utterances comment can work well.

Screenshots

2022-01-08 18-07-20 的屏幕截图

Build Environment

  • OS: [macOS, Ubuntu]
  • Theme version/commit [0.2.0]
  • Hugo version [hugo v0.91.2-1798BD3F+extended linux/amd64 ]

Preview Environment

  • OS: [macOS, Ubuntu]
  • Browser [Chrome]

Additional Information

Configuration files

    [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

    [params.page.comment]
      enable = true
      [params.page.comment.utterances]         # utteranc is a comment system based on GitHub issues. see https://utteranc.es
        enable = true
        repo = "beihai0xff/blog-comment"    # The repo to store comments
        issueTerm = "pathname"
        lightTheme = "github-light"
        darkTheme = "github-dark"
@beihai0xff beihai0xff added the bug Something isn't working label Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant