parsiya / Hugo-Octopress

Port of the classic Octopress theme to Hugo
MIT License
150 stars 50 forks source link

Unable to find archetypes directory #33

Closed simonszu closed 3 years ago

simonszu commented 7 years ago

When creating a new post with hugo new, hugo spawns an error when using this theme:

ERROR 2017/05/17 10:23:44 Unable to find archetypes directory for theme "hugo-octopress" at "/home/simonszu/blog/themes/hugo-octopress/archetypes"

Although, the post file is created. However, this error is ugly.

parsiya commented 7 years ago

Does your website have an archetypes directory? I do not see the error in my own setup because I have one.

Alternatively I can add a default archetype to the theme. Some themes have a default one and some don't.

simonszu commented 7 years ago

Yes, my website has an archetype directory. I think it will be enough if you add an empty directory, since hugo does not really check the contents (which is the reason the post file is still created for now)

mikewillems commented 6 years ago

Hi, so this error doesn't appear at all solved. I experienced the same thing, and as the OP says, Hugo creates the post, but my repo already contains an archetypes/ directory with a default.md in it, and the error still shows up. Judging by the fact that the error message is plainly wrong (claims it's unable to find an archetypes directory at the location of an archetypes directory), I'd say this should be considered a genuine bug.

parsiya commented 6 years ago

OK I need to look into this in a few weeks. Currently travelling.

mikewillems commented 6 years ago

Thanks! Yea, no rush certainly. Safe travels!

On Fri, Jun 22, 2018, 12:45 AM Parsia Hakimian notifications@github.com wrote:

Reopened #33 https://github.com/parsiya/Hugo-Octopress/issues/33.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/parsiya/Hugo-Octopress/issues/33#event-1695348267, or mute the thread https://github.com/notifications/unsubscribe-auth/ANjG3C--61bm22Z9DhGUvhb00j2FHmVbks5t_KClgaJpZM4Ndh0o .

parsiya commented 6 years ago

Thanks for waiting. I just created a new site. Tried with and without default.md in the site (kept the archetype in theme) and did not get any errors.

Can you deploy a barebones example site with the error to Github so I can figure out why you are getting the error?

parsiya commented 3 years ago

Closing this. Please re-open if the problem happens again.