Skip to content

Commit d6afc50

Browse files
authored
Merge pull request #138 from dapr/add-devcontainer
Add devcontainer and fix npm vulnerabilities
2 parents 3d458f9 + f88f04e commit d6afc50

File tree

6 files changed

+817
-684
lines changed

6 files changed

+817
-684
lines changed

.devcontainer/devcontainer.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "Dapr Blog Devcontainer",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
7+
"features": {
8+
"ghcr.io/devcontainers/features/go:1": {
9+
"version": "latest"
10+
},
11+
"ghcr.io/devcontainers/features/hugo:1": {
12+
"extended": true,
13+
"version": "latest"
14+
},
15+
"ghcr.io/devcontainers/features/node:1": {
16+
"nodeGypDependencies": true,
17+
"version": "lts",
18+
"nvmVersion": "latest"
19+
}
20+
},
21+
"customizations": {
22+
"vscode": {
23+
"extensions": [
24+
"streetsidesoftware.code-spell-checker",
25+
"tamasfe.even-better-toml",
26+
"davidanson.vscode-markdownlint",
27+
"budparr.language-hugo-vscode"
28+
],
29+
"settings": {
30+
"git.alwaysSignOff": true
31+
}
32+
}
33+
},
34+
"forwardPorts": [1313],
35+
"postAttachCommand": "bash scripts/init-container.sh"
36+
}

daprblog/.hugo_build.lock

Whitespace-only changes.

daprblog/layouts/partials/head.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<meta charset="utf-8">
2+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
3+
{{ hugo.Generator }}
4+
{{ if eq (getenv "HUGO_ENV") "production" }}
5+
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
6+
{{ else }}
7+
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
8+
{{ end }}
9+
{{ range .AlternativeOutputFormats -}}
10+
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
11+
{{ end -}}
12+
{{ partialCached "favicons.html" . }}
13+
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
14+
{{- template "_internal/opengraph.html" . -}}
15+
{{- template "_internal/schema.html" . -}}
16+
{{- template "_internal/twitter_cards.html" . -}}
17+
{{ if eq (getenv "HUGO_ENV") "production" }}
18+
{{ template "_internal/google_analytics_async.html" . }}
19+
{{ end }}
20+
{{ partialCached "head-css.html" . "asdf" }}
21+
<script
22+
src="https://code.jquery.com/jquery-3.5.1.min.js"
23+
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
24+
crossorigin="anonymous"></script>
25+
{{ if .Site.Params.offlineSearch }}
26+
<script
27+
src="https://unpkg.com/[email protected]/lunr.min.js"
28+
integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY"
29+
crossorigin="anonymous"></script>
30+
{{end}}
31+
{{ with .Site.Params.prism_syntax_highlighting }}
32+
<!-- stylesheet for Prism -->
33+
<link rel="stylesheet" href="/css/prism.css" />
34+
{{ end }}
35+
{{ partial "hooks/head-end.html" . }}

0 commit comments

Comments
 (0)