Sped0n / bridget

Bridget is a minimal Hugo theme for photographers/visual artists, powered by SolidJS.
https://bridget-demo.sped0n.com
MIT License
86 stars 19 forks source link

Site just loads "Page not found" #378

Closed realdeadbeef closed 1 month ago

realdeadbeef commented 2 months ago

Step to reproduce

  1. hugo new site sitename
  2. cd sitename
  3. git init
  4. git submodule add https://github.com/Sped0n/bridget themes/bridget
  5. Remove hugo.toml from project root
  6. Copy config folder from exampleSite to project root
  7. Set theme config as follows:
# theme as module
[module]
replacements = "github.com/Sped0n/bridget/v2 -> themes/bridget" # deploy with local dir  WARN: delete this line if you want to deploy with git
[[module.imports]]
path = "github.com/Sped0n/bridget/v2" # deploy with git (recommended)  WARN: you should also set `bundled` to true in params.toml !!!
  1. mkdir ./content/Info
  2. Write the default index.md headings to index.md in the Info folder.
  3. hugo serve

Expected behaviour

Build a site, idk what else to say?

Actual Behaviour

image

Logs

Watching for changes in /home/deadbeef/Documents/tomtakesphotos.com/{archetypes,assets,content,data,i18n,layouts,static}
Watching for config changes in /home/deadbeef/Documents/tomtakesphotos.com/hugo.toml, /home/deadbeef/Documents/tomtakesphotos.com/config/_default
Start building sites … 
hugo v0.132.2-3fd26c70dff5934ec1802b9563530130ed1bca75+extended linux/amd64 BuildDate=2024-08-14T16:17:21Z VendorInfo=gohugoio

WARN  found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "json" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN  
-------------------+-----
  Pages            |  2  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Cleaned          |  0  

Built in 5 ms

Addition details

No response

Hugo version

v0.132.2 (extended)

Bridget version

v2.0.3

OS version

Linux Mint and Debian

Verify steps

Sped0n commented 2 months ago

Try to change themes/bridget to only bridget?

It seems hugo now require(or I misunderstand) the relative path that relative to the themesDir, details in https://gohugo.io/hugo-modules/configuration/#module-configuration-top-level

Sped0n commented 1 month ago

Will close this issue for now. If the error persists after attempting the suggested solutions, please reopen the issue.