Dear theme authors,
As mentioned in the README of the Hugo Themes repository:
If your theme makes use of the Hugo Pipes methods toCSS and / or PostCSS, you need to take additional steps to make your theme compatible with the basic version of Hugo:
- From the root of a Hugo project that uses your theme execute the command hugo server -this will generate the /resources/ folder under the project root-.
- Or if you prefer to build the project simply run the command hugo -this will generate the resources under public/resources-.
- Copy the generated resources folder and commit it directly either under the root of your theme's repository or under exampleSite.
- Whenever you make any changes in your Hugo Pipes assets, you will need to regenerate and commit the theme's resources again.
The following themes have outdated or missing resources and currently their demos are broken on the Hugo Themes website. Please regenerate, commit your themes' resources and let me know.
FIXED Academic @gcushen
FIXED Hugo ReFresh @PippoRJ
FIXED Hugo Theme Zen @frjo
FIXED Solar Theme @bake
FIXED Swift Theme @onweru
FIXED Book Theme @alex-shpak
Hi @onedrawingperday ,
I have committed the resources. Can you check if everything is working?
Thanks
Hello @PippoRJ
Thank you for committing the resources, everything is fine now.
Hi!
Same here, regenerated resources in exampleSite for Book Theme
Thanks for heads up.
@onweru
I saw that you committed the themes resources. However the stylesheet of your theme points to the host root and as a result it is missing from the demo.
To fix this you need to change {{ $styles.RelPermalink }} to {{ $styles.Permalink }} in line 18 of partials/head.html
Also the pagination's first and last links again point to the host root.
To fix this you need to remove the spaces that you have entered between the href atrribute and the equals sign = and the quote ' in line 6 and line 14 of partials/pager.html i.e.href = ' needs to become href='
@onedrawingperday
Thanks for the hints, I fixed the bugs and tested against this repo
@onweru I updated your theme in the repo. The demo looks good now.
Thank you for the notice. I've added the resources. Hope Solar works again
Hugo Theme Zen is fixed now I hope.
@onedrawingperday thanks for the heads up :)
We've committed the pre-computed resources folder for Academic. Please let us know if there are any further issues with generating the demo. Thanks!
@gcushen Thanks, the demo is now fixed.
@bake Thanks, the demo is now fixed. You can close https://github.com/bake/solar-theme-hugo/issues/4
@frjo
When I execute the Build Script with the basic version of Hugo the demo does not generate.
But when I test the exampleSite with hugo server using the basic version of Hugo it does generate.
I need to investigate a bit further what's going on with your theme and I will get back to you.
@frjo
The theme demo is now fixed
Whenever you update your theme you need to commit both the generated resources as well as the published CSS as mentioned in https://github.com/frjo/hugo-theme-zen/pull/9