Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ resources/
node_modules/

.DS_store
.hugo_build.lock
.hugo_build.lock

# Go workspace files (local development)
go.work
go.work.sum
**/hinode.work
**/hinode.work.sum
**/go.work.sum
22 changes: 18 additions & 4 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
keepWhitespace = true

[module]
workspace = "hinode.work"
replacements = "github.com/gethinode/hinode/component-library -> ../component-library"
# Component-library is now integrated in layouts/component-library
[module.hugoVersion]
extended = true
min = "0.146.0"
Expand All @@ -137,15 +136,30 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
[[module.mounts]]
source = "layouts"
target = "layouts"
# Bookshop component mounts (from integrated component-library)
[[module.mounts]]
source = "layouts/component-library"
target = "layouts/partials/bookshop"
includeFiles = ["**/*.hugo.html"]
[[module.mounts]]
source = "layouts/component-library"
target = "data/structures"
includeFiles = ["**/*.bookshop.yml"]
[[module.mounts]]
source = "layouts/component-library/bookshop.scss"
target = "assets/scss/bookshop.scss"
[[module.mounts]]
source = "layouts/component-library"
target = "assets/scss/modules/bookshop"
includeFiles = ["**/*.scss"]
excludeFiles = ["bookshop.scss"]
[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = "netlify.toml"
target = "assets/config/netlify.toml"
# toml-docs-start modules
[[module.imports]]
path = "github.com/gethinode/hinode/component-library"
[[module.imports]]
path = "github.com/cloudcannon/bookshop/hugo/v3"
[[module.imports]]
Expand Down
3 changes: 1 addition & 2 deletions exampleSite/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
output = '{netlify,server}'

[module]
# Build and serve using local hinode clone declared in the named Hugo workspace:
workspace = "hinode.work"
# Component-library is now integrated in main Hinode module
[[module.imports]]
path = "github.com/gethinode/mod-cookieyes/v2"
[[module.imports]]
Expand Down
4 changes: 4 additions & 0 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ module github.com/gethinode/hinode-example
go 1.19

require (
github.com/gethinode/hinode/v2 v2.0.0-beta.42 // indirect
github.com/gethinode/mod-cookieyes/v2 v2.2.6 // indirect
)

// Use local Hinode for development
replace github.com/gethinode/hinode/v2 => ../
5 changes: 0 additions & 5 deletions exampleSite/hinode.work

This file was deleted.

15 changes: 0 additions & 15 deletions exampleSite/hinode.work.sum

This file was deleted.

Loading