bridget icon indicating copy to clipboard operation
bridget copied to clipboard

Site just loads "Page not found"

Open realdeadbeef opened this issue 1 year ago • 1 comments

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

  • [ ] Pull request is welcome. Check this if you want to start a pull request
  • [X] I have searched on Issue Tracker, No duplicate or related open issue has been found
  • [X] Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs

realdeadbeef avatar Aug 17 '24 19:08 realdeadbeef

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

Sped0n0ld avatar Aug 18 '24 08:08 Sped0n0ld

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

Sped0n0ld avatar Aug 29 '24 08:08 Sped0n0ld