Hugo-theme-zzo: Theme switching is broken after last update

Created on 11 Jan 2020  路  18Comments  路  Source: zzossig/hugo-theme-zzo

I just updated the git sub module. Switching the theme from the drop down has no effect.

All 18 comments

I also noticed click on the ^ button to goto top also doesn't work. Seems like last few changes, broke some actions.

I checked it on Ubuntu but seems to work well.
Do you have any error messages in the browser?

Or did you override the baseof.html file to yours?(layouts/_default/baseof.html)

Screenshot from 2020-01-12 14-06-41

Peek 2020-01-12 14-08

I am clicking on all options in the drop down

did you override the baseof.html file to yours?

No. I have not overridden anything. This is why I am able to update via the git Sub module.

Can you delete root/resources folder? Hugo will generate a new one.

I did that. I restarted hugo server. No change.

Can you check the download version of Zzo theme

  1. download this repo
  2. make folder themes/test
  3. unzip the downloaded zip file to the themes/test folder
  4. in your config.toml file(config/_default/config.toml)
...
theme = "test"
...
  1. run Hugo and check if it works

I don't understand this point:

unzip the downloaded zip file to the themes/test folder

I already downloaded this repo in first step.

I suspect the git submodule crash some code.
So, just want to check if we use the source(not in git submodule) makes it work.

This is just for the test. So you don't have to touch the submodule.

Tried that. Doesn't work either :/

Can you share some repo?
I can't reproduce on my end even on Ubuntu environment

I can tell you if I revert to last git sub module commit, the theme change works. It is definitely broken by last 2 commits.

I reproduced it. I'll check what is happening behind.

Ok, I found an unnecessary file
欤检劃 2020-01-12 231235
You have to delete the layouts folder. In this folder, scripts.html file override the theme's scripts.html file.

And replace custom to kimbie
欤检劃 2020-01-12 231404

@nisrulz I added some options for the site header font.https://github.com/zzossig/hugo-theme-zzo/commit/9ffe2fd9656aab48c7365c44248072a051f76506

You can set options in the content/_index.md file
欤检劃 2020-01-12 234708

Everything works now. Thank you for your help here :)

Was this page helpful?
0 / 5 - 0 ratings