Skip to content

Commit

Permalink
add content security policy to ru-faq.nl, bump hugo and theme
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Jan 7, 2024
1 parent da15f08 commit 26b3793
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.116.1"
hugo-version: "0.121.2"

- name: Build
run: hugo --minify
run: hugo --minify --environment production

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public
resources
.hugo_build.lock
3 changes: 3 additions & 0 deletions layouts/partials/custom-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- if hugo.IsProduction -}}
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' https://cdn.jsdelivr.net/npm/">
{{- end -}}

0 comments on commit 26b3793

Please sign in to comment.