Skip to content

Commit cc235ef

Browse files
authored
upgrade hugo (#31)
* Add security config for asciidoc * Remove Hugo.Generator for >0.85 compatibility * Bump version support to 105
1 parent fb743f5 commit cc235ef

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.github/workflows/gh-pages-deployment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Hugo
2727
uses: peaceiris/actions-hugo@v2
2828
with:
29-
hugo-version: '0.85.0'
29+
hugo-version: '0.105.0'
3030

3131
- name: Build
3232
run: hugo

.github/workflows/preview-blog.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Hugo
2222
uses: peaceiris/actions-hugo@v2
2323
with:
24-
hugo-version: '0.85.0'
24+
hugo-version: '0.105.0'
2525

2626
- name: Setup base URL env var
2727
run: |

config.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,23 @@ markup:
7070
goldmark:
7171
renderer:
7272
unsafe: true
73+
74+
security:
75+
enableInlineShortcodes: false
76+
exec:
77+
allow:
78+
- ^dart-sass-embedded$
79+
- ^go$
80+
- ^npx$
81+
- ^postcss$
82+
- ^asciidoctor$
83+
osEnv:
84+
- (?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$
85+
funcs:
86+
getenv:
87+
- ^HUGO_
88+
http:
89+
methods:
90+
- (?i)GET|POST
91+
urls:
92+
- .*

themes/story/layouts/_default/baseof.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<!-- the Story logo is a square with rounded corners interlocked with a section symbol in Bodoni 72 Book font -->
1010
{{ with .Description }}<meta name="description" content="{{. | markdownify }}">{{ end }}
1111
{{ with .Keywords }}<meta name="keywords" content="{{.}}">{{ end }}
12-
{{ .Hugo.Generator }}
13-
12+
1413
{{ block "social" . }}
1514
{{ end }}
1615

0 commit comments

Comments
 (0)