Skip to content

Commit b22e1f0

Browse files
committed
Upgrade to Hugo 0.148.1 and Congo v2.12.2 with new template system
- Upgrade Hugo from 0.145.0 to 0.148.1 (extended) - Upgrade Congo theme from v2.11.0 to v2.12.2 - Migrate layouts directory structure for Hugo 0.146.0+ template system: - Move _default files to layouts root - Rename partials to _partials - Rename shortcodes to _shortcodes - Remove deprecated _internal directory - Update GitHub Actions workflow with version pinning: - Hugo 0.148.1, Congo v2.12.2, Go 1.20.14 - Update action versions for security - All builds tested and working locally
1 parent 1c2a029 commit b22e1f0

File tree

16 files changed

+12
-18
lines changed

16 files changed

+12
-18
lines changed

.github/workflows/hugo.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Version-locked deployment workflow for Hugo site with Congo theme
2+
# Hugo 0.148.1 + Congo v2.12.2 + Go 1.20.14 for reproducible builds
13
name: Deploy Hugo site
24

35
on:
@@ -11,19 +13,19 @@ jobs:
1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref }}
1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v4.1.7
1517
with:
1618
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
1719

1820
- name: Setup Go
19-
uses: actions/setup-go@v4
21+
uses: actions/setup-go@v5.2.0
2022
with:
21-
go-version: '^1.20.0'
23+
go-version: '1.20.14' # Pin to specific Go version for reproducible builds
2224

2325
- name: Setup Hugo
24-
uses: peaceiris/actions-hugo@v2
26+
uses: peaceiris/actions-hugo@v2.6.0
2527
with:
26-
hugo-version: '0.145.0' # Pin to 0.145.0 which works with Congo theme
28+
hugo-version: '0.148.1' # Pin to 0.148.1 for Congo v2.12.2 compatibility
2729
extended: true
2830

2931
- name: Debug Environment
@@ -40,7 +42,7 @@ jobs:
4042
- name: Setup Hugo Modules
4143
run: |
4244
hugo mod tidy
43-
hugo mod get github.com/jpanther/congo/v2@v2.11.0
45+
hugo mod get github.com/jpanther/congo/v2@v2.12.2
4446
4547
- name: Build
4648
run: hugo --minify
@@ -53,7 +55,7 @@ jobs:
5355
fi
5456
5557
- name: Deploy
56-
uses: peaceiris/actions-gh-pages@v3
58+
uses: peaceiris/actions-gh-pages@v4.0.0
5759
if: github.ref == 'refs/heads/main'
5860
with:
5961
github_token: ${{ secrets.GITHUB_TOKEN }}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/cloudartisan/cloudartisan.github.io
22

33
go 1.20
44

5-
require github.com/jpanther/congo/v2 v2.11.0 // indirect
5+
require github.com/jpanther/congo/v2 v2.12.2 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ github.com/jpanther/congo/v2 v2.11.0 h1:whwuUIn20egAPfMR3HaFu7sW7/rz096bz26sgpsU
22
github.com/jpanther/congo/v2 v2.11.0/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=
33
github.com/jpanther/congo/v2 v2.12.1 h1:HwMaU1k0ZhKa8DNYNKn+UKyK+8lf3TvVYZ/z3YknlC4=
44
github.com/jpanther/congo/v2 v2.12.1/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=
5+
github.com/jpanther/congo/v2 v2.12.2 h1:dr7oI/as+g+FJ6zVLZ3LSVOSRlsJjSsvTO6YP4zbOsQ=
6+
github.com/jpanther/congo/v2 v2.12.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=

layouts/_internal/shortcodes/figure.html

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)