hugomods / docker

:whale: The automated, up-to-date and minimal third party Hugo Docker Images. 自动化、最新和最小化的第三方 Hugo Docker 映像。
https://docker.hugomods.com
MIT License
63 stars 8 forks source link

Documentation for creating a new site #72

Closed iangozer closed 6 months ago

iangozer commented 6 months ago

Not sure if I missed something but in following the documentation I get errors "Error: command error: Unable to locate config file or config directory. Perhaps you need to create a new site."

From what I have pieced together from other guides I needed to: docker run --rm -v $(pwd):/src hugomods/hugo:exts hugo new site new_site --format yaml sudo chown -R $USER: new_site cd new_site

before creating the docker compose. Sure it would help others to know this (if correct) in the docs

razonyang commented 6 months ago

Yeah, there isn't doc about creating site, will update doc later.

razonyang commented 6 months ago

Done, https://docker.hugomods.com/docs/development/prerequisite/#hugo-site, thanks for your feedback.