Switch to PaperMod theme with dark mode, search, tags
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 6s

This commit is contained in:
2026-02-06 20:11:25 +01:00
parent 6c73de1426
commit 9174093aaa
13 changed files with 53 additions and 71 deletions

View File

@@ -16,7 +16,7 @@ jobs:
- name: Checkout repo - name: Checkout repo
run: | run: |
git clone --depth 1 --branch "${GITHUB_REF_NAME}" "http://gitea:3000/${GITHUB_REPOSITORY}.git" . git clone --depth 1 --branch "${GITHUB_REF_NAME}" --recurse-submodules --shallow-submodules "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
- name: Build Hugo site - name: Build Hugo site
run: hugo --minify run: hugo --minify

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git

View File

@@ -1,5 +0,0 @@
---
title: "Accueil"
---
Bienvenue sur le blog de Bojemoi Lab.

View File

@@ -2,6 +2,8 @@
title: "CI/CD Hugo avec Gitea Actions et Alpine" title: "CI/CD Hugo avec Gitea Actions et Alpine"
date: 2026-02-06T19:00:00+00:00 date: 2026-02-06T19:00:00+00:00
draft: false draft: false
tags: ["gitea", "ci-cd", "alpine", "hugo", "devops"]
summary: "Comment ce blog se déploie tout seul en moins de 15 secondes avec un pipeline Alpine + Hugo minimaliste."
--- ---
Comment ce blog se déploie tout seul en moins de 15 secondes, avec un pipeline minimaliste. Comment ce blog se déploie tout seul en moins de 15 secondes, avec un pipeline minimaliste.

View File

@@ -2,6 +2,8 @@
title: "Premier article" title: "Premier article"
date: 2026-02-06 date: 2026-02-06
draft: false draft: false
tags: ["hugo", "blog"]
summary: "Bienvenue sur le blog Bojemoi Lab. Présentation de la stack technique."
--- ---
Bienvenue sur le blog Bojemoi Lab. Bienvenue sur le blog Bojemoi Lab.

5
content/search.md Normal file
View File

@@ -0,0 +1,5 @@
---
title: "Recherche"
layout: "search"
placeholder: "Rechercher un article..."
---

View File

@@ -1,9 +1,48 @@
baseURL = 'https://blog.bojemoi.me/' baseURL = 'https://blog.bojemoi.me/'
languageCode = 'fr' languageCode = 'fr'
title = 'Bojemoi Blog' title = 'Bojemoi Blog'
theme = 'PaperMod'
[params] [params]
env = 'production'
description = "Blog technique - Bojemoi Lab" description = "Blog technique - Bojemoi Lab"
author = 'Bojemoi'
defaultTheme = 'auto'
ShowReadingTime = true
ShowShareButtons = false
ShowPostNavLinks = true
ShowBreadCrumbs = true
ShowCodeCopyButtons = true
ShowToc = true
[params.homeInfoParams]
Title = "Bojemoi Lab"
Content = "Blog technique - Infrastructure, DevOps, S\u00e9curit\u00e9"
[[params.socialIcons]]
name = 'gitea'
url = 'https://gitea.bojemoi.me'
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true
[markup.highlight]
style = 'monokai'
[[menu.main]]
name = 'Articles'
url = '/posts/'
weight = 10
[[menu.main]]
name = 'Tags'
url = '/tags/'
weight = 20
[[menu.main]]
name = 'Search'
url = '/search/'
weight = 30
[outputs]
home = ['HTML', 'RSS', 'JSON']

View File

@@ -1,21 +0,0 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<h1><a href="/">{{ .Site.Title }}</a></h1>
<p>{{ .Site.Params.description }}</p>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<p>&copy; {{ now.Year }} {{ .Site.Title }}</p>
</footer>
</body>
</html>

View File

@@ -1,12 +0,0 @@
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ range .Pages }}
<article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<time>{{ .Date.Format "2 January 2006" }}</time>
<p>{{ .Summary }}</p>
</article>
{{ end }}
{{ end }}

View File

@@ -1,9 +0,0 @@
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "main" }}
<article>
<h2>{{ .Title }}</h2>
<time>{{ .Date.Format "2 January 2006" }}</time>
{{ .Content }}
</article>
<a href="/">&larr; Retour</a>
{{ end }}

View File

@@ -1,12 +0,0 @@
{{ define "title" }}{{ .Site.Title }}{{ end }}
{{ define "main" }}
{{ .Content }}
<h2>Articles</h2>
{{ range site.RegularPages }}
<article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<time>{{ .Date.Format "2 January 2006" }}</time>
<p>{{ .Summary }}</p>
</article>
{{ end }}
{{ end }}

View File

@@ -1,11 +0,0 @@
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; max-width: 800px; margin: 0 auto; padding: 2rem; color: #333; }
header { margin-bottom: 2rem; border-bottom: 2px solid #eee; padding-bottom: 1rem; }
header h1 a { color: #333; text-decoration: none; }
header p { color: #666; }
article { margin-bottom: 2rem; }
article h3 a { color: #0066cc; text-decoration: none; }
article h3 a:hover { text-decoration: underline; }
article time { color: #999; font-size: 0.9rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #eee; color: #999; font-size: 0.85rem; }
h2 { margin: 1.5rem 0 1rem; }

1
themes/PaperMod Submodule

Submodule themes/PaperMod added at 3bb0ca281f