nicokaiser / hugo-theme-gallery

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

Homepage does not display the photo album #24

Closed ok-kai closed 11 months ago

ok-kai commented 11 months ago

Hello, author. Thank you for presenting such an attractive theme. Currently, I am encountering a problem where my homepage does not display the photo album, but it is only shown in the categories.

As shown in the picture, the homepage does not have any images.

image

Images are displayed only in the categories.

image

my configuration file is as follows.


title = "Keith's Gallery"
languageCode = "en-us"
copyright = "© Keith"
disableKinds = ["taxonomy", "term"]
defaultContentLanguage = "en"
enableRobotsTXT = true
timeZone = "Europe/Berlin"
theme = "gallery"

[params]
  title = "My Gallery"
  description = "Example site for hugo-theme-gallery"
  defaultTheme = "dark"

[author]
  name = "Keith"

[outputs]
  page = ["HTML"]
  home = ["HTML", "RSS"]
  section = ["HTML"]

[imaging]
  resampleFilter = "CatmullRom"
  quality = 75
  [imaging.exif]
    disableDate = false
    disableLatLong = true
    includeFields = "ImageDescription"

[module]
  [module.hugoVersion]
    extended = false
    min = "0.112.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)"
    target = "js"
  [[build.cachebusters]]
    source = "assets/.*\\.(.*)$"
    target = "$1"

[menu]
[[menu.footer]]
  name = "GitHub"
  url = "https://github.com/nicokaiser/hugo-theme-gallery/"
  weight = 3

and directory structure is as follows.


├─content
│  │  about.md
│  │  imprint.md
│  │  _index.md
│  │
│  ├─animals
│  │  │  _index.md
│  │  │
│  │  ├─cats
│  │  │      dearpan1.jpg
│  │  │      dearpan2.jpg
│  │  │      dearpan3.jpg
│  │  │      feature.jpg
│  │  │      index.md
│  │  │
│  │  └─dogs
│  │          index.md
│  │
│  ├─fashion-beauty
│  │      index.md
│  │
│  ├─nature
│  │      index.md
│  │
│  └─private
│          index.md
ok-kai commented 11 months ago

Oh, I think I've found the reason. Thank you, author, for your sincere thanks.

Jeder321 commented 5 months ago

And what was that reason? I am having similar problem