Switch to PaperMod theme with dark mode, search, tags
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 6s
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 6s
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
||||
|
||||
- name: Checkout repo
|
||||
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
|
||||
run: hugo --minify
|
||||
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
title: "Accueil"
|
||||
---
|
||||
|
||||
Bienvenue sur le blog de Bojemoi Lab.
|
||||
@@ -2,6 +2,8 @@
|
||||
title: "CI/CD Hugo avec Gitea Actions et Alpine"
|
||||
date: 2026-02-06T19:00:00+00:00
|
||||
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.
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
title: "Premier article"
|
||||
date: 2026-02-06
|
||||
draft: false
|
||||
tags: ["hugo", "blog"]
|
||||
summary: "Bienvenue sur le blog Bojemoi Lab. Présentation de la stack technique."
|
||||
---
|
||||
|
||||
Bienvenue sur le blog Bojemoi Lab.
|
||||
|
||||
5
content/search.md
Normal file
5
content/search.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
title: "Recherche"
|
||||
layout: "search"
|
||||
placeholder: "Rechercher un article..."
|
||||
---
|
||||
39
hugo.toml
39
hugo.toml
@@ -1,9 +1,48 @@
|
||||
baseURL = 'https://blog.bojemoi.me/'
|
||||
languageCode = 'fr'
|
||||
title = 'Bojemoi Blog'
|
||||
theme = 'PaperMod'
|
||||
|
||||
[params]
|
||||
env = 'production'
|
||||
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]
|
||||
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']
|
||||
|
||||
@@ -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>© {{ now.Year }} {{ .Site.Title }}</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 }}
|
||||
@@ -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="/">← Retour</a>
|
||||
{{ end }}
|
||||
@@ -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 }}
|
||||
@@ -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
1
themes/PaperMod
Submodule
Submodule themes/PaperMod added at 3bb0ca281f
Reference in New Issue
Block a user