Skip to content

Commit 12f2ab0

Browse files
committed
chore: update themes & config for hugo 0.145.0
1 parent e897c35 commit 12f2ab0

File tree

13 files changed

+178
-1093
lines changed

13 files changed

+178
-1093
lines changed

Diff for: .env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HUGO=/home/gina/apps/hugo_0.145.0

Diff for: .github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
build:
3030
runs-on: ubuntu-latest
3131
env:
32-
HUGO_VERSION: 0.110.0
32+
HUGO_VERSION: 0.145.0
3333
steps:
3434
- name: Install Hugo CLI
3535
run: |

Diff for: .gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "themes/PaperMod"]
22
path = themes/PaperMod
3-
url = https://github.com/foosel/hugo-PaperMod.git
3+
url = https://github.com/adityatelange/hugo-PaperMod.git
44
[submodule "themes/hugo-notice"]
55
path = themes/hugo-notice
66
url = https://github.com/martignoni/hugo-notice.git

Diff for: Taskfile.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
version: '3'
22

3+
dotenv: ['.env']
4+
35
vars:
46
TERMUX: '{{and .PREFIX (contains "com.termux" .PREFIX)}}'
57
TODAY: '{{now | date "2006-01-02"}}'
8+
HUGO: '{{default "hugo" .HUGO}}'
69

710
tasks:
811
serve:
912
desc: Runs hugo serve, all posts visible.
1013
cmds:
11-
- hugo serve -D -E -F {{if .TERMUX}}--noBuildLock{{end}} --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313
14+
- |
15+
{{.HUGO}} serve -D -E -F {{if .TERMUX}}--noBuildLock{{end}} --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313
1216
1317
build:
1418
desc: Create a production build of the site in ./public.
1519
cmds:
16-
- hugo --minify {{if .TERMUX}}--noBuildLock{{end}}
20+
- |
21+
{{.HUGO}} --minify {{if .TERMUX}}--noBuildLock{{end}}
1722
1823
new-blog:
1924
desc: Creates a new blog post.
@@ -92,6 +97,7 @@ tasks:
9297
rm -r "{{.BUNDLE}}"
9398
9499
redate:
100+
desc: Redates a page to today's date.
95101
vars:
96102
PATH: 'content/{{trimPrefix "content/" (trimSuffix "/" .CLI_ARGS)}}'
97103
cmds:
@@ -114,4 +120,9 @@ tasks:
114120
rename="${path//$current/$now}"
115121
echo $rename
116122
mv "$path" "$rename" || true
117-
123+
124+
update-mods:
125+
desc: Updates all submodules.
126+
cmds:
127+
- cd themes/PaperMod && git pull origin master
128+
- cd themes/hugo-notice && git pull origin main

Diff for: config.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ theme:
66
- "hugo-notice"
77
- "PaperMod"
88

9-
ignoreErrors:
10-
- "error-remote-getjson"
11-
129
params:
1310
author: Gina Häußge
1411
env: production
@@ -45,6 +42,10 @@ params:
4542
- name: Email
4643
url: "mailto:[email protected]"
4744

45+
mainSections:
46+
- blog
47+
- til
48+
4849
menu:
4950
main:
5051
- identifier: about
@@ -102,3 +103,8 @@ outputFormats:
102103
baseName: feed
103104
rel: alternate
104105
isPlainText: true
106+
107+
security:
108+
http:
109+
mediaTypes:
110+
- ^application/json(;.+)?$

Diff for: layouts/partials/footer.html

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{{- if not (.Param "hideFooter") }}
22
<footer class="footer">
3-
{{- if site.Copyright }}
4-
<span>{{ site.Copyright | markdownify }}</span>
5-
{{- else }}
6-
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ site.Title }}</a></span>
3+
{{- if not site.Params.footer.hideCopyright }}
4+
{{- if site.Copyright }}
5+
<span>{{ site.Copyright | markdownify }}</span>
6+
{{- else }}
7+
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ site.Title }}</a></span>
8+
{{- end }}
9+
{{- print " · "}}
10+
{{- end }}
11+
12+
{{- with site.Params.footer.text }}
13+
{{ . | markdownify }}
14+
{{- print " · "}}
715
{{- end }}
816
<span>
917
Powered by

Diff for: layouts/partials/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
{{- $lang := .Lang}}
100100
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
101-
{{- with site.Home.AllTranslations }}
101+
{{- with site.Home.Translations }}
102102
<ul class="lang-switch">
103103
{{- if $separator }}<li>|</li>{{ end }}
104104
{{- range . -}}

Diff for: layouts/partials/post_meta.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
1717
{{- end }}
1818

19+
{{- if not (.Param "hideAuthor") -}}
20+
{{- with (partial "author.html" .) }}
21+
{{- $scratch.Add "meta" (slice .) }}
22+
{{- end }}
23+
{{- end }}
24+
1925
{{- with ($scratch.Get "meta") }}
20-
{{- delimit . "&nbsp;·&nbsp;" -}}
26+
{{- delimit . "&nbsp;·&nbsp;" | safeHTML -}}
2127
{{- end -}}

Diff for: layouts/partials/project_meta.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
{{- end }}
1010

1111
{{- with ($scratch.Get "meta") }}
12-
{{- delimit . "&nbsp;·&nbsp;" -}}
12+
{{- delimit . "&nbsp;·&nbsp;" | safeHTML -}}
1313
{{- end -}}

Diff for: layouts/partials/svg.html

-949
This file was deleted.

0 commit comments

Comments
 (0)