Closed realdeadbeef closed 3 months ago
Could you check if your git submodule add
command created all the necessary files from the repository in themes/gallery
?
❯ ls -la themes/gallery
total 80
drwxr-xr-x 18 nkaiser staff 576 Aug 17 22:19 .
drwxr-xr-x 3 nkaiser staff 96 Aug 17 22:19 ..
-rw-r--r-- 1 nkaiser staff 42 Aug 17 22:19 .git
drwxr-xr-x 4 nkaiser staff 128 Aug 17 22:19 .github
-rw-r--r-- 1 nkaiser staff 82 Aug 17 22:19 .gitignore
-rw-r--r-- 1 nkaiser staff 137 Aug 17 22:19 .prettierignore
-rw-r--r-- 1 nkaiser staff 1073 Aug 17 22:19 LICENSE
-rw-r--r-- 1 nkaiser staff 5285 Aug 17 22:19 README.md
drwxr-xr-x 5 nkaiser staff 160 Aug 17 22:19 assets
drwxr-xr-x 11 nkaiser staff 352 Aug 17 22:19 exampleSite
-rw-r--r-- 1 nkaiser staff 60 Aug 17 22:19 go.mod
drwxr-xr-x 9 nkaiser staff 288 Aug 17 22:19 i18n
drwxr-xr-x 4 nkaiser staff 128 Aug 17 22:19 images
drwxr-xr-x 5 nkaiser staff 160 Aug 17 22:19 layouts
-rw-r--r-- 1 nkaiser staff 299 Aug 17 22:19 package.json
-rw-r--r-- 1 nkaiser staff 380 Aug 17 22:19 prettier.config.js
drwxr-xr-x 3 nkaiser staff 96 Aug 17 22:19 static
-rw-r--r-- 1 nkaiser staff 457 Aug 17 22:19 theme.toml
When I execute exactly the commands you use, also with hugo v0.132.2+extended
, and it works... Seems like something is missing, I get the 404 page when I do not add `theme = 'gallery'" to hugo.toml...
❯ cat hugo.toml
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'gallery'
deadbeef@mintVM:~/Documents/tomtakesphotos.com$ ls -lh themes/gallery/
total 52K
drwxrwxr-x 4 deadbeef deadbeef 4.0K Aug 17 20:37 assets
drwxrwxr-x 6 deadbeef deadbeef 4.0K Aug 17 20:37 exampleSite
-rw-rw-r-- 1 deadbeef deadbeef 60 Aug 17 20:37 go.mod
drwxrwxr-x 2 deadbeef deadbeef 4.0K Aug 17 20:37 i18n
drwxrwxr-x 2 deadbeef deadbeef 4.0K Aug 17 20:37 images
drwxrwxr-x 4 deadbeef deadbeef 4.0K Aug 17 20:37 layouts
-rw-rw-r-- 1 deadbeef deadbeef 1.1K Aug 17 20:37 LICENSE
-rw-rw-r-- 1 deadbeef deadbeef 299 Aug 17 20:37 package.json
-rw-rw-r-- 1 deadbeef deadbeef 380 Aug 17 20:37 prettier.config.js
-rw-rw-r-- 1 deadbeef deadbeef 5.2K Aug 17 20:37 README.md
drwxrwxr-x 3 deadbeef deadbeef 4.0K Aug 17 20:37 static
-rw-rw-r-- 1 deadbeef deadbeef 457 Aug 17 20:37 theme.toml
Looks okay, could you check your hugo.toml?
I've just fixed it, really sorry, I didn't have auto-save enabled in my IDE, so none of my changes were actually saving :sob:
Steps to reproduce
hugo new site tomtakesphotos.com
cd tomtakesphotos.com
git init
git submodule add --depth=1 https://github.com/nicokaiser/hugo-theme-gallery.git themes/gallery
theme = 'gallery'
tohugo.toml
hugo serve
orhugo
Result
CLI Output