kaushalmodi / hugo-bare-min-theme

A bare minimum theme for Hugo (https://gohugo.io) to help develop and debug Hugo sites -- https://hugo-bare-min.netlify.com/,
https://hugo-sandbox.netlify.com/
MIT License
80 stars 16 forks source link

Archetypes directory missing error #4

Closed sombreroEnPuntas closed 6 years ago

sombreroEnPuntas commented 6 years ago

ERROR
Unable to find archetypes directory for theme "bare-min" at "/home/$USER/$SITE_DIR/themes/bare-min/archetypes"

Seems like you need archetypes/default.md file for this to work :)

kaushalmodi commented 6 years ago

Oh right, I'll fix that :)

I never get this error as I never use hugo new. I write my posts directly in Emacs/Org mode and export them to Markdown using ox-hugo.

kaushalmodi commented 6 years ago

But wait, why would the theme require the archetypes dir? Isn't that present in your site repo?

sombreroEnPuntas commented 6 years ago

On site, yes. There is a folder with a default template.
But seems like setting the theme param makes hugo search for that on the theme module.

I am just following the quick start tutorial tho, never used this tool before... not an expert ^^ Here is an example of a working file structure: https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/archetypes

kaushalmodi commented 6 years ago

@sombreroEnPuntas Thanks for reporting this. The issue is now fixed... hugo new won't throw any error.