Skip to content

Commit

Permalink
⬆️ Update to last hugo version (0.118.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlemaitre committed Sep 12, 2023
1 parent b8c6a63 commit 33236d9
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 107 deletions.
37 changes: 25 additions & 12 deletions .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
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
7 changes: 7 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .tool-versions
@@ -0,0 +1 @@
hugo extended_0.118.2
183 changes: 93 additions & 90 deletions config.toml
Expand Up @@ -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 = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
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 = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
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 = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
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 = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
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

Expand Up @@ -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é.

Expand Down
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion themes/hello-friend-ng/layouts/partials/footer.html
Expand Up @@ -4,7 +4,7 @@
<span>&copy; {{ now.Format "2006" }}</span>
{{ if .Site.Author.name }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span>{{ end }}
{{ if .Site.Copyright }}<span>{{ .Site.Copyright| safeHTML }}</span>{{ end }}
{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}<span><a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></span>{{ end }}
<span><a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></span>
</div>
</div>
<div class="footer__inner">
Expand Down
1 change: 0 additions & 1 deletion themes/hello-friend-ng/layouts/partials/head.html
Expand Up @@ -37,7 +37,6 @@

{{ template "_internal/schema.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/google_news.html" . }}

{{ if isset .Site.Taxonomies "series" }}
{{ template "_internal/opengraph.html" . }}
Expand Down

0 comments on commit 33236d9

Please sign in to comment.