Skip to content

Commit f4e50d9

Browse files
authored
updated devcontainer for hugo ext
1 parent 517ce89 commit f4e50d9

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
{
2-
"name": "Hugo Codespace",
3-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4-
"features": {
5-
"ghcr.io/devcontainers/features/hugo:1": {
6-
"version": "extended"
7-
}
8-
},
9-
"postCreateCommand": "hugo version"
2+
"name": "Ubuntu",
3+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
4+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
5+
"features": {
6+
"ghcr.io/devcontainers/features/hugo:1": {
7+
"extended": true
8+
},
9+
"ghcr.io/devcontainers-contrib/features/actionlint:1": {},
10+
"ghcr.io/devcontainers-contrib/features/gh-cli:1": {}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"eliostruyf.vscode-front-matter"
16+
]
17+
}
18+
},
19+
20+
// Features to add to the dev container. More info: https://containers.dev/features.
21+
// "features": {},
22+
23+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
24+
"forwardPorts": [1313],
25+
26+
// You can use go mod instead
27+
"postCreateCommand": "git submodule update --init",
1028
}

0 commit comments

Comments
 (0)