Closed simonszu closed 3 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.
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)
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.
OK I need to look into this in a few weeks. Currently travelling.
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 .
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?
Closing this. Please re-open if the problem happens again.
When creating a new post with
hugo new
, hugo spawns an error when using this theme:Although, the post file is created. However, this error is ugly.