Skip to content

Commit 7c0efa6

Browse files
committed
Upgrade Hugo to 0.160.1 and Congo to v2.13.0, patch remaining Hugo 0.146+ breakages via project-level layout overrides
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent 394bd27 commit 7c0efa6

6 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
env:
34-
HUGO_VERSION: 0.145.0
34+
HUGO_VERSION: 0.160.1
3535
steps:
3636
- name: Install Hugo CLI
3737
run: |

.hugo-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.160.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ docker run --rm \
3232
-p 8080:8080 \
3333
-v ${PWD}:/src \
3434
-v ${HOME}/hugo_cache:/tmp/hugo_cache \
35-
hugomods/hugo:exts-non-root-0.145.0 \
35+
hugomods/hugo:debian-reg-dart-sass-go-git-non-root-0.160.1 \
3636
server -p 8080 --buildDrafts --buildFuture
3737
```
3838

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ if ne .Params.showAppearanceSwitcher nil }}
2+
{{ warnf "[CONGO] Theme parameter `showAppearanceSwitcher` has been renamed to `footer.showAppearanceSwitcher`. Please update your site configuration." }}
3+
{{ end }}
4+
{{ if ne .Params.showScrollToTop nil }}
5+
{{ warnf "[CONGO] Theme parameter `showScrollToTop` has been renamed to `footer.showScrollToTop`. Please update your site configuration." }}
6+
{{ end }}
7+
{{ if ne .Params.logo nil }}
8+
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
9+
{{ end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }}
2+
{{ $links := hugo.Data.sharing }}
3+
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
4+
{{ range . }}
5+
{{ with index $links . }}
6+
<a
7+
class="m-1 inline-block min-w-[2.4rem] rounded bg-neutral-300 p-1 text-center text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800"
8+
href="{{ printf .url $.Permalink $.Title }}"
9+
title="{{ i18n .title }}"
10+
aria-label="{{ i18n .title }}"
11+
target="_blank"
12+
rel="noopener noreferrer"
13+
>{{ partial "icon.html" .icon }}</a
14+
>
15+
{{ end }}
16+
{{ end }}
17+
</section>
18+
{{ end }}

themes/congo

Submodule congo updated 210 files

0 commit comments

Comments
 (0)