refactor: move bookmarks.yaml into content directory
This commit is contained in:
parent
87c8260c80
commit
ff39ba2e1a
6 changed files with 5 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ for (const txt of txtFiles) {
|
|||
}
|
||||
|
||||
// Count bookmarks
|
||||
const bookmarksFile = path.join(root, 'src/data/bookmarks.yaml');
|
||||
const bookmarksFile = path.join(root, 'src/content/bookmarks.yaml');
|
||||
const bookmarks = fs.existsSync(bookmarksFile)
|
||||
? yaml.load(fs.readFileSync(bookmarksFile, 'utf-8')) || []
|
||||
: [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue