hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.05k stars 607 forks source link

No sidebar, No ToC in my Blog #862

Closed niltied closed 10 months ago

niltied commented 10 months ago

Expected Behavior

Hi @hossainemruz,

I've just install from scratch full hugo instance with toha v4.1.1. Everything work fine. I have enabled Blog Posts features and TOC features in reading page in my params.features section of my hugo.yaml file.

# Site parameters
params:
  # Background image of the landing page
  background: images/site/windows.jpg

  # GitHub repo URL of your site
  # gitRepo: https://github.com/hugo-toha/hugo-toha.github.io

  features:
    # Enable dark theme
    darkMode:
      enable: true

    # Enable portfolio section
    portfolio:
      enable: true

    # Enable blog posts
    blog:
      enable: true

    # Enable Table of contents in reading page
    toc:
      enable: true

I write my first post with a lot of titles for my TOC as describe here.

---
title: "Analytics and Comments"
date: 2024-01-13T17:00:23+01:00
hero: /images/posts/writing-posts/analytics.svg
description: Adding analytics and disquss comment in hugo 
theme: Toha
menu:
  sidebar:
    name: Analytics & Comments
    identifier: analytics-and-comments
    weight: 500
---

# Titre 1
## Titre 1.1
## Titre 1.2
# Titre 2
## Titre 2.1
## Titre 2.2
## Titre 2.3
# Titre 3
## Titre 3.1
### Titre 3.1.1
### Titre 3.1.2
## Titre 3.2

I see it in my Blog, but I don't see my sidebar menu on the left, and I don't see my ToC too.

I don't understand. Any idea ?

Thanks

Hugo Version : 0.121.4 Toha Version : 4.1.1

Browsers Affected

hossainemruz commented 10 months ago

Can you please share the URL for your blog?

niltied commented 10 months ago

Check here : https://hugo.dietlin.eu and go to "Articles" :)

hossainemruz commented 10 months ago

I can see the sidebar and TOC. image

niltied commented 10 months ago

Hum... It's OK for me too. In fact, it was my zoom in my Firefox fixed to 110%. You can close my issue. Thank a lot Emruz for your test and feedback. See you next time !