Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding archetypes default file #23

Merged
merged 1 commit into from
May 25, 2018
Merged

Conversation

nonumeros
Copy link
Contributor

If the variable 'theme' is specified on the site configuration file - config.toml in this case - and then e.g. create a new post, an error is returned that the archetypes directory is not found.
Therefore a default.md archetype file must be in place
I think this fixes it - according to the latest modifications from gohugoio/hugo@863a812

@nonumeros
Copy link
Contributor Author

Let me recap what I said earlier. Note that I didn't try with any other config files other than with the default toml suffix type after a site is created with hugo

Default config.toml for the site would be

 baseURL = "http://example.org/"
 languageCode = "en-us"
 title = "My New Hugo Site"

 theme = "lanyon-hugo"

https://gohugo.io/getting-started/quick-start/#site-configuration

 hugo new <site>
 cd <site>
 hugo new post/post1.md

If theme="lanyon-hugo" is specified on that default config.toml file created by hugo,
then the error Unable to find archetypes directory for theme "lanyon-hugo" is returned.

Hence an archetypes file is needed.

@tummychow tummychow merged commit e117979 into tummychow:master May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants