diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 25a02c3..03d371f 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -1,21 +1,34 @@
-name: Publish Site
+name: GitHub Pages
on:
push:
branches:
- - main
+ - main # Set a branch to deploy
+ pull_request:
jobs:
- build-deploy:
- runs-on: ubuntu-latest
-
+ deploy:
+ runs-on: ubuntu-22.04
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
steps:
- - name: Checkout Repo
- uses: actions/checkout@master
+ - uses: actions/checkout@v3
+ with:
+ submodules: true # Fetch Hugo themes (true OR recursive)
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
with:
- submodules: true
- - name: Publish Site
- uses: chabad360/hugo-gh-pages@master
+ hugo-version: '0.117.0'
+ extended: true
+
+ - name: Build
+ run: hugo --minify
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: github.ref == 'refs/heads/main'
with:
- githubToken: ${{ secrets.PERSONAL_TOKEN }}
- cname: rlemaitre.com
\ No newline at end of file
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..919ce1f
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 639900d..6e86672 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,3 @@
-
diff --git a/.tool-versions b/.tool-versions
new file mode 100644
index 0000000..d4980cb
--- /dev/null
+++ b/.tool-versions
@@ -0,0 +1 @@
+hugo extended_0.118.2
diff --git a/config.toml b/config.toml
index dd08cea..47f4358 100644
--- a/config.toml
+++ b/config.toml
@@ -10,105 +10,108 @@ tag = "tags"
series = "series"
[params]
-dateform = "Jan 2, 2006"
-dateformShort = "Jan 2"
-dateformNum = "2006-01-02"
-dateformNumTime = "2006-01-02 15:04"
+ dateform = "Jan 2, 2006"
+ dateformShort = "Jan 2"
+ dateformNum = "2006-01-02"
+ dateformNumTime = "2006-01-02 15:04"
-# Subtitle for home
-homeSubtitle = "Developer – Architect — Engineering Manager – CTO"
+ # Subtitle for home
+ homeSubtitle = "Developer – Architect — Engineering Manager – CTO"
-# Set disableReadOtherPosts to true in order to hide the links to other posts.
-disableReadOtherPosts = false
+ # Set disableReadOtherPosts to true in order to hide the links to other posts.
+ disableReadOtherPosts = false
-# Enable sharing buttons, if you linke
-enableSharingButtons = true
+ # Enable sharing buttons, if you linke
+ enableSharingButtons = true
-# Metadata mostly used in document's head
-description = "Raphaël Lemaitre's website and blog."
-keywords = "homepage, blog"
-images = ["/images/screenshot.png"]
+ # Metadata mostly used in document's head
+ description = "Raphaël Lemaitre's website and blog."
+ keywords = "homepage, blog"
+ images = ["/images/screenshot.png"]
-[params.portrait]
-path = "/images/rlemaitre.jpeg"
+ [params.portrait]
+ path = "/images/rlemaitre.jpeg"
-[[params.social]]
-name = "twitter"
-url = "https://twitter.com/rlemaitre"
+ [[params.social]]
+ name = "twitter"
+ url = "https://twitter.com/rlemaitre"
-[[params.social]]
-name = "github"
-url = "https://github.com/rlemaitre"
+ [[params.social]]
+ name = "github"
+ url = "https://github.com/rlemaitre"
-[[params.social]]
-name = "gitlab"
-url = "https://gitlab.com/rlemaitre"
+ [[params.social]]
+ name = "gitlab"
+ url = "https://gitlab.com/rlemaitre"
-[[params.social]]
-name = "linkedin"
-url = "https://linkedin.com/in/rlemaitre/"
+ [[params.social]]
+ name = "linkedin"
+ url = "https://linkedin.com/in/rlemaitre/"
-#[[params.social]]
-#name = "dev"
-#url = "https://dev.to/rlemaitre/"
-#
-#[[params.social]]
-#name = "medium"
-#url = "https://medium.com/@rlemaitre/"
+ #[[params.social]]
+ #name = "dev"
+ #url = "https://dev.to/rlemaitre/"
+ #
+ #[params.social]
+ #name = "medium"
+ #url = "https://medium.com/@rlemaitre/"
[languages]
-[languages.en]
-title = "Raphaël Lemaitre"
-subtitle = "Developer – Architect – Engineering Manager – CTO"
-homeSubtitle = "Developer – Architect – Engineering Manager – CTO"
-keywords = "developer,architect,engineering manager,CTO"
-copyright = 'CC BY-NC 4.0'
-readOtherPosts = "Read other posts"
-
-[languages.en.params.logo]
-logoText = "cd ~"
-logoHomeLink = "/"
-# or
-#
-# path = "/img/your-example-logo.svg"
-# alt = "Your example logo alt text"
-
-[[languages.en.menu.main]]
-identifier = "whoami"
-name = "whoami"
-url = "/whoami/"
-weight = 1
-[[languages.en.menu.main]]
-identifier = "blog"
-name = "Blog"
-url = "/posts/"
-weight = 2
-
-[languages.fr]
-title = "Raphaël Lemaitre"
-subtitle = "Développeur – Architecte – Engineering Manager – CTO"
-homeSubtitle = "Développeur – Architecte – Engineering Manager – CTO"
-keywords = "developpeur,architecte,engineering manager,CTO"
-copyright = 'CC BY-NC 4.0'
-readOtherPosts = "Autres posts"
-
-[languages.fr.params.logo]
-logoText = "cd ~"
-logoHomeLink = "/"
-# or
-#
-# path = "/img/your-example-logo.svg"
-# alt = "Your example logo alt text"
-
-[[languages.fr.menu.main]]
-identifier = "whoami"
-name = "whoami"
-url = "/whoami/"
-weight = 1
-[[languages.fr.menu.main]]
-identifier = "blog"
-name = "Blog"
-url = "/posts/"
-weight = 2
-
-# And you can even create generic menu
+ [languages.en]
+ title = "Raphaël Lemaitre"
+
+ [languages.en.params]
+ subtitle = "Developer – Architect – Engineering Manager – CTO"
+ homeSubtitle = "Developer – Architect – Engineering Manager – CTO"
+ keywords = "developer,architect,engineering manager,CTO"
+ copyright = 'CC BY-NC 4.0'
+ readOtherPosts = "Read other posts"
+ [languages.en.params.logo]
+ logoText = "cd ~"
+ logoHomeLink = "/"
+ # or
+ #
+ # path = "/img/your-example-logo.svg"
+ # alt = "Your example logo alt text"
+
+ [languages.en.menu]
+ [[languages.en.menu.main]]
+ identifier = "whoami"
+ name = "whoami"
+ url = "/whoami/"
+ weight = 1
+ [[languages.en.menu.main]]
+ identifier = "blog"
+ name = "Blog"
+ url = "/posts/"
+ weight = 2
+
+ [languages.fr]
+ title = "Raphaël Lemaitre"
+
+ [languages.fr.params]
+ subtitle = "Développeur – Architecte – Engineering Manager – CTO"
+ homeSubtitle = "Développeur – Architecte – Engineering Manager – CTO"
+ keywords = "developpeur,architecte,engineering manager,CTO"
+ copyright = 'CC BY-NC 4.0'
+ readOtherPosts = "Autres posts"
+ [languages.fr.params.logo]
+ logoText = "cd ~"
+ logoHomeLink = "/"
+ # or
+ #
+ # path = "/img/your-example-logo.svg"
+ # alt = "Your example logo alt text"
+
+ [languages.fr.menu]
+ [[languages.fr.menu.main]]
+ identifier = "whoami"
+ name = "whoami"
+ url = "/whoami/"
+ weight = 1
+ [[languages.fr.menu.main]]
+ identifier = "blog"
+ name = "Blog"
+ url = "/posts/"
+ weight = 2
+
diff --git a/content/posts/til/trigger-a-ci-pipeline-from-command-line.fr.md b/content/posts/til/trigger-a-ci-pipeline-from-command-line.fr.md
index 1f5431b..54d1c30 100644
--- a/content/posts/til/trigger-a-ci-pipeline-from-command-line.fr.md
+++ b/content/posts/til/trigger-a-ci-pipeline-from-command-line.fr.md
@@ -17,7 +17,7 @@ Une solution possible était de d'effectuer une modification factice sur notre b
Cette modification déclencherait un build dans Gitlab CI et résulterait à un nouveau déploiement.
Le problème serait résolu mais la modification du code est artificielle et superflue.
-Puis, j'ai découvert l'option `--allow-empty` de `git commit` grâce à ce tweet: {{< tweet 1366466258393161729 >}}
+Puis, j'ai découvert l'option `--allow-empty` de `git commit` grâce à ce tweet: < tweet user="meganesully" id="1366466258393161729" >
Ainsi, j'ai exécuté la commande suivante, poussé sur noter branche principale et noter environnement de staging fut déployé.
diff --git a/content/posts/til/trigger-a-ci-pipeline-from-command-line.md b/content/posts/til/trigger-a-ci-pipeline-from-command-line.md
index 8752cf9..bac4e7e 100644
--- a/content/posts/til/trigger-a-ci-pipeline-from-command-line.md
+++ b/content/posts/til/trigger-a-ci-pipeline-from-command-line.md
@@ -17,7 +17,7 @@ One solution I saw was to add a dummy modification to our codebase (for example
This would trigger our CI/CD pipeline and would result to a new deployment.
This solves my problem, but the code modification is artificial.
-Then, I discovered the `--allow-empty` option of `git commit` thanks to this tweet: {{< tweet 1366466258393161729 >}}
+Then, I discovered the `--allow-empty` option of `git commit` thanks to this tweet: {{< tweet user="meganesully" id="1366466258393161729" >}}
Eventually, I ran the following command, pushed to our main branch and our staging environment was re-deployed.
diff --git a/themes/hello-friend-ng/layouts/partials/footer.html b/themes/hello-friend-ng/layouts/partials/footer.html
index 857104b..eceafce 100644
--- a/themes/hello-friend-ng/layouts/partials/footer.html
+++ b/themes/hello-friend-ng/layouts/partials/footer.html
@@ -4,7 +4,7 @@
© {{ now.Format "2006" }}
{{ if .Site.Author.name }}{{ .Site.Author.name }}{{ end }}
{{ if .Site.Copyright }}{{ .Site.Copyright| safeHTML }}{{ end }}
- {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}{{ end }}
+