Skip to content

Commit

Permalink
Merge pull request #408 from JensRoland/feat/alternative-config-filename
Browse files Browse the repository at this point in the history
feat: add alternative nue.yaml config filename
  • Loading branch information
tipiirai authored Dec 9, 2024
2 parents ef601cd + e067014 commit 8b457ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/examples/simple-blog/site.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://json.schemastore.org/nuejs-site.json

globals: ["@global"]
libs: ["@library"]
Expand Down
1 change: 1 addition & 0 deletions packages/nuekit/src/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export async function createSite(args) {
}

async function readData(path) {
if (!path) return
try {
const raw = await read(path)
return yaml.load(raw)
Expand Down

0 comments on commit 8b457ff

Please sign in to comment.