zzossig / hugo-theme-zzo

Make a blog with hugo zzo theme!
https://themes.gohugo.io//theme/hugo-theme-zzo/en/
MIT License
739 stars 260 forks source link

parse failed: template: _default/single.html:55: undefined variable "$enableToc" #459

Open santosh opened 2 years ago

santosh commented 2 years ago

Hugo version: 0.89.0 zzo version: 01f9e43

First off, I'm not much into Hugo itself, but I have some basic knowledge of it.

I am trying to override /themes/zzo/layouts/_default/single.html with layouts/_default/single.html to include subscription form. But when I try to start the development server, the program exits with the following error:

parse failed: template: _default/single.html:55: undefined variable "$enableToc"

From what I can understand, the $enableToc variable is not reachable from layouts/_default/single.html.

How do I fix this issue?