Skip to content

Commit

Permalink
upgrade hugo (#31)
Browse files Browse the repository at this point in the history
* Add security config for asciidoc

* Remove Hugo.Generator for >0.85 compatibility

* Bump version support to 105
  • Loading branch information
rmoff committed Dec 6, 2022
1 parent fb743f5 commit cc235ef
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.85.0'
hugo-version: '0.105.0'

- name: Build
run: hugo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-blog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.85.0'
hugo-version: '0.105.0'

- name: Setup base URL env var
run: |
Expand Down
20 changes: 20 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,23 @@ markup:
goldmark:
renderer:
unsafe: true

security:
enableInlineShortcodes: false
exec:
allow:
- ^dart-sass-embedded$
- ^go$
- ^npx$
- ^postcss$
- ^asciidoctor$
osEnv:
- (?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$
funcs:
getenv:
- ^HUGO_
http:
methods:
- (?i)GET|POST
urls:
- .*
3 changes: 1 addition & 2 deletions themes/story/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<!-- the Story logo is a square with rounded corners interlocked with a section symbol in Bodoni 72 Book font -->
{{ with .Description }}<meta name="description" content="{{. | markdownify }}">{{ end }}
{{ with .Keywords }}<meta name="keywords" content="{{.}}">{{ end }}
{{ .Hugo.Generator }}


{{ block "social" . }}
{{ end }}

Expand Down

0 comments on commit cc235ef

Please sign in to comment.