File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 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 : |
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11version : ' 3'
22
3+ dotenv : ['.env']
4+
35vars :
46 TERMUX : ' {{and .PREFIX (contains "com.termux" .PREFIX)}}'
57 TODAY : ' {{now | date "2006-01-02"}}'
8+ HUGO : ' {{default "hugo" .HUGO}}'
69
710tasks :
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.
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
Original file line number Diff line number Diff line change 66 - " hugo-notice"
77 - " PaperMod"
88
9- ignoreErrors :
10- - " error-remote-getjson"
11-
129params :
1310 author : Gina Häußge
1411 env : production
@@ -45,6 +42,10 @@ params:
4542 - name : Email
46434744
45+ mainSections :
46+ - blog
47+ - til
48+
4849menu :
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(;.+)?$
Original file line number Diff line number Diff line change 11{{- if not (.Param "hideFooter") }}
22< 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 " · "}}
715 {{- end }}
816 < span >
917 Powered by
Original file line number Diff line number Diff line change 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 . -}}
Original file line number Diff line number Diff line change 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 . " · " -}}
26+ {{- delimit . " · " | safeHTML -}}
2127{{- end -}}
Original file line number Diff line number Diff line change 99{{- end }}
1010
1111{{- with ($scratch.Get "meta") }}
12- {{- delimit . " · " -}}
12+ {{- delimit . " · " | safeHTML -}}
1313{{- end -}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments