git init
I started by dogfooding1 my template repository. It allows me to use terraform to manage GitHub repository declaratively. If you're not familiar with "Infrastructure as Code" I highly recommend giving it a try, the declarative approach to configuration management and resource provisioning makes repetitive tasks so much easier. Also, it already has editorconfig and pre-commit configuration.
After I initialized my blog with terraform and configured git to use created repo as a remote. I am ready to create new Hugo site.
hugo new site
-
Create empty Hugo site
$ hugo new site blog Configure
pre-committo validate and formattomlandjsonfiles.Configure
editorconfigfortomlandjsonfiles.
Top comments (0)