nicokaiser / hugo-theme-gallery

Gallery Theme for Hugo
https://nicokaiser.github.io/hugo-theme-gallery/
MIT License
336 stars 98 forks source link

White background - no css theme #48

Closed guinslym closed 8 months ago

guinslym commented 8 months ago

I am getting a white page. I started a new Hugo site.

Screenshot 2024-02-19 at 10 13 59 PM

Hugo.toml

baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme= 'gallery'
nicokaiser commented 8 months ago

Could you please try to add the module and build settings to your configuration file?

[module]
  [module.hugoVersion]
    min = "0.113.0"
  [[module.mounts]]
    source = "assets"
    target = "assets"
  [[module.mounts]]
    source = "hugo_stats.json"
    target = "assets/watching/hugo_stats.json"

[build]
  writeStats = true
  [[build.cachebusters]]
    source = "assets/watching/hugo_stats\\.json"
    target = "styles\\.css"
  [[build.cachebusters]]
    source = "(postcss|tailwind)\\.config\\.js"
    target = "css"
  [[build.cachebusters]]
    source = "assets/.*\\.(js|ts|jsx|tsx)"
    target = "js"
  [[build.cachebusters]]
    source = "assets/.*\\.(.*)$"
    target = "$1"

I think this is still missing in the README.

guinslym commented 8 months ago

Thank you very much for your fast reply! it's working!