(This will be empty when deployed in production, sorry ¯\_(ツ)_/¯
.)
Reminder to myself:
Page resources in leaf bundles do not generate HTML in Hugo.
This means that if I make e.g. content/blog/post1/index.md
and then content/blog/post1/somethingelse.md
,
somethingelse.md
does not generate an HTML page,
and it cannot be listed here.
Instead, either make it a separate post like content/blog/somethingelse/index.md
,
or make post1 a branch bundle like content/blog/post1/_index.md
.
Script to find page resources in leaf bundles marked as drafts
for index in $(find content -type f -name index.md -or -name index.html); do
indexdir="$(dirname "$index")"
find "$indexdir" -type f \( -name "*.md" -o -name "*.html" \) -not -name "index*" -exec grep -Hin "draft: true" {} \;
done
Date | Section | Post |
---|