You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): Use forked hugo-data-to-pages. Add async.
- Replaces hugo-data-to-pages with forked repo that accepts a config object and uses a more recent version of js-yaml.
- Uses async to wait for scripts to complete.
dataFolder: articlesPath,//Data folder path (will fetch ALL files from here)
41
+
type: "api",//Type name [basically layout] (save it under "layouts/NAME/single.html" or themes/THEME/layouts/NAME/single.html). Can be overridden on individual pages by defining "type" under "fields"
42
+
pages: "articles",//Pages element in your data, in case it's "posts" or "articles" etc.
43
+
contentPath: contentPath,//Path to content directory (in case it's not "content")
44
+
hugoPath: `${DOCS_ROOT}/node_modules/.bin/hugo-extended`//Path to hugo binary (if global, e.g. /snap/bin/hugo)
0 commit comments