Configure Github Codespaces for Hugo Blog

For use Github Codespaces for edit Hugo blog i used the following configuration:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "name": "Sergsoares Blog",
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
  "settings": {
    "terminal.integrated.defaultProfile.linux": "bash",
    "files.defaultLanguage": "markdown"
  },

  "extensions": [
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "editorconfig.editorconfig",
    "streetsidesoftware.code-spell-checker"
  ],

  "forwardPorts": [1313],

  "features": {
    "ghcr.io/devcontainers/features/hugo:1": {
        "extended": true
    }
  }
}

Thanks for Aaron with the post Simplifying devcontainers with features and the aaronpowell.github.io - devcontainer.json file with correct features to avoid recreate hugo containers.