DEV Community

Cover image for hugo new site
Sardorbek Imomaliev
Sardorbek Imomaliev

Posted on

hugo new site

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

  1. Create empty Hugo site

    $ hugo new site blog
    
  2. Add .gitignore for Hugo

  3. Configure pre-commit to validate and format toml and json files.

  4. Configure editorconfig for toml and json files.


  1. https://en.wikipedia.org/wiki/Eating_your_own_dog_food 

Top comments (0)