File tree 13 files changed +178
-1093
lines changed
13 files changed +178
-1093
lines changed Original file line number Diff line number Diff line change
1
+ HUGO = /home/gina/apps/hugo_0.145.0
Original file line number Diff line number Diff line change 29
29
build :
30
30
runs-on : ubuntu-latest
31
31
env :
32
- HUGO_VERSION : 0.110 .0
32
+ HUGO_VERSION : 0.145 .0
33
33
steps :
34
34
- name : Install Hugo CLI
35
35
run : |
Original file line number Diff line number Diff line change 1
1
[submodule "themes/PaperMod "]
2
2
path = themes/PaperMod
3
- url = https://github.com/foosel /hugo-PaperMod.git
3
+ url = https://github.com/adityatelange /hugo-PaperMod.git
4
4
[submodule "themes/hugo-notice "]
5
5
path = themes/hugo-notice
6
6
url = https://github.com/martignoni/hugo-notice.git
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
3
+ dotenv : ['.env']
4
+
3
5
vars :
4
6
TERMUX : ' {{and .PREFIX (contains "com.termux" .PREFIX)}}'
5
7
TODAY : ' {{now | date "2006-01-02"}}'
8
+ HUGO : ' {{default "hugo" .HUGO}}'
6
9
7
10
tasks :
8
11
serve :
9
12
desc : Runs hugo serve, all posts visible.
10
13
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
12
16
13
17
build :
14
18
desc : Create a production build of the site in ./public.
15
19
cmds :
16
- - hugo --minify {{if .TERMUX}}--noBuildLock{{end}}
20
+ - |
21
+ {{.HUGO}} --minify {{if .TERMUX}}--noBuildLock{{end}}
17
22
18
23
new-blog :
19
24
desc : Creates a new blog post.
92
97
rm -r "{{.BUNDLE}}"
93
98
94
99
redate :
100
+ desc : Redates a page to today's date.
95
101
vars :
96
102
PATH : ' content/{{trimPrefix "content/" (trimSuffix "/" .CLI_ARGS)}}'
97
103
cmds :
@@ -114,4 +120,9 @@ tasks:
114
120
rename="${path//$current/$now}"
115
121
echo $rename
116
122
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
Original file line number Diff line number Diff line change 6
6
- " hugo-notice"
7
7
- " PaperMod"
8
8
9
- ignoreErrors :
10
- - " error-remote-getjson"
11
-
12
9
params :
13
10
author : Gina Häußge
14
11
env : production
@@ -45,6 +42,10 @@ params:
45
42
- name : Email
46
43
47
44
45
+ mainSections :
46
+ - blog
47
+ - til
48
+
48
49
menu :
49
50
main :
50
51
- identifier : about
@@ -102,3 +103,8 @@ outputFormats:
102
103
baseName : feed
103
104
rel : alternate
104
105
isPlainText : true
106
+
107
+ security :
108
+ http :
109
+ mediaTypes :
110
+ - ^application/json(;.+)?$
Original file line number Diff line number Diff line change 1
1
{{- if not (.Param "hideFooter") }}
2
2
< footer class ="footer ">
3
- {{- if site.Copyright }}
4
- < span > {{ site.Copyright | markdownify }}</ span >
5
- {{- else }}
6
- < span > © {{ 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 > © {{ 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 " · "}}
7
15
{{- end }}
8
16
< span >
9
17
Powered by
Original file line number Diff line number Diff line change 98
98
99
99
{{- $lang := .Lang}}
100
100
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
101
- {{- with site.Home.AllTranslations }}
101
+ {{- with site.Home.Translations }}
102
102
< ul class ="lang-switch ">
103
103
{{- if $separator }}< li > |</ li > {{ end }}
104
104
{{- range . -}}
Original file line number Diff line number Diff line change 16
16
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
17
17
{{- end }}
18
18
19
+ {{- if not (.Param "hideAuthor") -}}
20
+ {{- with (partial "author.html" .) }}
21
+ {{- $scratch.Add "meta" (slice .) }}
22
+ {{- end }}
23
+ {{- end }}
24
+
19
25
{{- with ($scratch.Get "meta") }}
20
- {{- delimit . " · " -}}
26
+ {{- delimit . " · " | safeHTML -}}
21
27
{{- end -}}
Original file line number Diff line number Diff line change 9
9
{{- end }}
10
10
11
11
{{- with ($scratch.Get "meta") }}
12
- {{- delimit . " · " -}}
12
+ {{- delimit . " · " | safeHTML -}}
13
13
{{- end -}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments