DEV Community

Cover image for hugo new site
Sardorbek Imomaliev
Sardorbek Imomaliev

Posted on

3 1

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 

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs