Skip to content

Commit f3cb8b9

Browse files
committed
chore: update for hugo 0.156.0
1 parent 2f43074 commit f3cb8b9

15 files changed

Lines changed: 155 additions & 100 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/hugo.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.156.0
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
- name: Install Dart Sass
41+
run: sudo snap install dart-sass
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
- name: Setup Pages
47+
id: pages
48+
uses: actions/configure-pages@v5
49+
- name: Install Node.js dependencies
50+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51+
- name: Build with Hugo
52+
env:
53+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
54+
HUGO_ENVIRONMENT: production
55+
run: |
56+
hugo \
57+
--minify \
58+
--baseURL "${{ steps.pages.outputs.base_url }}/"
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v3
61+
with:
62+
path: ./public
63+
64+
# Deployment job
65+
deploy:
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
runs-on: ubuntu-latest
70+
needs: build
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "themes/zzo"]
22
path = themes/zzo
3-
url = https://github.com/zzossig/hugo-theme-zzo.git
3+
url = https://github.com/GerkinDev/hugo-theme-zzo.git

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ export $(cat .env | xargs);
99
hugo server -DEF
1010
```
1111

12+
Tested on
13+
```
14+
$ hugo version
15+
hugo v0.156.0-9d914726dee87b0e8e3d7890d660221bde372eec+extended linux/amd64 BuildDate=2026-02-18T16:39:55Z VendorInfo=snap:0.156.0
16+
```
17+
1218
## Third party
1319

1420
* [**GitHub corners**](https://github.com/tholman/github-corners): MIT
1521
* [**findAndReplaceDOMText**](https://github.com/padolsey/findAndReplaceDOMText): unlicense
1622

1723
## Continuous Deployment
1824

19-
CI is here: https://app.circleci.com/pipelines/github/GerkinDev/devblog
25+
CI is here: https://app.circleci.com/pipelines/github/GerkinDev/devblog

content/resume/gerkindev.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Resume of Alexandre GERMAIN (GerkinDev)
55
type: resume
66
enableToc: false
77
header:
8-
image:
8+
image:
99
src: assets/images/whoami/avatar.jpg
1010
alt: Image of Alexandre GERMAIN
1111
infos:
@@ -24,7 +24,7 @@ header:
2424
url: 'https://twitter.com/gerkindev'
2525
intro: |
2626
Enthusiast developer and [FOSS](https://en.wikipedia.org/wiki/Free_and_open-source_software) evangelist, I always try to stay open to new processes to improve.
27-
27+
2828
> It's not about being serious, but doing things seriously.
2929
items:
3030
- title: Professional Experiences
@@ -37,7 +37,7 @@ items:
3737
Development of a media platform aiming to facilitate access to science by the general public.
3838
3939
Choice of technologies & software implementation. Creation of a scrapper to retrieve scientific papers & popularization metadata. Deployment, tests, proxies & database configuration & setup.
40-
40+
4141
In progress.
4242
4343
> Angular 13, Angular Material, Nest.JS, TypeORM, Express, MongoDB, Kubernetes, Podman/Docker
@@ -76,16 +76,16 @@ items:
7676
startDate: 2014-06-01T00:00:00
7777
endDate: 2017-02-01T00:00:00
7878
contents: |
79-
80-
81-
- title: Studies & Formations
79+
Various
80+
81+
- title: "Studies & Formations"
8282
sections:
8383
- title: 42 School Paris
8484
startDate: 2014-06-01T00:00:00
85-
contents: |
85+
contents: |
8686
C formation, rewrite of stdlib functions. Unix & Systems specialization.
8787
- title: Bac STI2D Mention Très Bien
8888
startDate: 2013-06-01T00:00:00
89-
contents: |
89+
contents: |
9090
Year-end project : Programmation & realization of an autonomous oriented solar panel.
91-
---
91+
---

content/test/include-code-file/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ image:
1818
---
1919

2020
{{<includeCodeFile "./foo.yaml">}}
21-
{{<includeCodeFile "./bar.conf" "fallback">}}
21+
{{<includeCodeFile "./bar.conf" "fallback">}}
22+
{{<linkToPage "./index">}}

content/walkthroughs/kubernetes/00-vpn/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tags:
1717
* <https://blog.container-solutions.com/running-docker-containers-with-systemd>
1818
{{</expand>}}
1919

20-
Because we are installing our cluster bare metal on servers exposed on the Internet, we'll need a way to secure all of our network traffic around the critical parts of *kubernetes*. To do so, we'll use OpenVPN to create a virtual secured network where all of our nodes will work. Moreover, this network will also contains *MetalLB* services when {{<linkToPage "/walkthroughs/kubernetes/02-cluster#initialize-metallb" "configuring our bare metal load balancer">}}.
20+
Because we are installing our cluster bare metal on servers exposed on the Internet, we'll need a way to secure all of our network traffic around the critical parts of *kubernetes*. To do so, we'll use OpenVPN to create a virtual secured network where all of our nodes will work. Moreover, this network will also contains *MetalLB* services when {{<linkToPage "../02-cluster#initialize-metallb" "configuring our bare metal load balancer">}}.
2121

2222
{{<alert theme="info">}}
2323
You **may** need to edit your `/etc/hosts` files to associate `vpn.{{cluster.baseHostName}}` to your future *OpenVPN* server on **each of the devices that will join the cluster** (if `vpn.{{cluster.baseHostName}}` is not a real *DNS* name).
@@ -211,4 +211,4 @@ done
211211
sudo install -o root -m 400 $(hostname).ovpn /etc/openvpn/client/$(hostname).conf
212212
sudo systemctl restart openvpn-client@$(hostname)
213213
scp kube-worker-1.ovpn gerkin@192.168.1.26:~
214-
```
214+
```

content/walkthroughs/kubernetes/02-cluster/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,4 @@ ip link delete flannel.1
227227
```sh
228228
( sudo kubeadm reset -f && sudo rm -rf /etc/cni/net.d || 1 ) && \
229229
sudo kubeadm init --config cluster-config.yaml
230-
```
230+
```

content/walkthroughs/kubernetes/04-reverse-proxy/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ kubectl --namespace traefik get svc
4545

4646
## 3. Setup the bare metal proxy
4747

48-
We'll use *nginx* as our bare reverse proxy. It will simply redirect every requests on the specified ports to traefik, that was {{<linkToPage "./03-router" "previously installed in kubernetes">}}. In the case of an SSL connection, it won't be unwrapped.
48+
We'll use *nginx* as our bare reverse proxy. It will simply redirect every requests on the specified ports to traefik, that was {{<linkToPage "../03-router" "previously installed in kubernetes">}}. In the case of an SSL connection, it won't be unwrapped.
4949

5050
```sh
5151
# Install nginx

content/walkthroughs/kubernetes/10-scaling-up/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Hopefully, here comes the real huge advantage of *kubernetes*: it is meant to sc
1818

1919
## Join the cluster's VPN
2020

21-
In the step {{<linkToPage "/walkthroughs/kubernetes/00-vpn">}}, we have set up a VPN so that each of our nodes can communicate safely with each others, on their own virtual network across the internet. This comes with the great power of being able to have servers spread all around the globe.
21+
In the step {{<linkToPage "../00-vpn">}}, we have set up a VPN so that each of our nodes can communicate safely with each others, on their own virtual network across the internet. This comes with the great power of being able to have servers spread all around the globe.
2222

2323
### From the *OpenVPN server node*
2424

@@ -118,4 +118,4 @@ This node has joined the cluster:
118118
119119
Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
120120
```
121-
{{</expand>}}
121+
{{</expand>}}

0 commit comments

Comments
 (0)