feat: initialisation du blog

This commit is contained in:
2026-05-21 10:45:23 +02:00
commit 068d38aac6
18 changed files with 266 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git
BIN
View File
Binary file not shown.
+31
View File
@@ -0,0 +1,31 @@
name: Build and Deploy Hugo
on:
push:
branches:
- main
jobs:
build:
runs-on: native
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Hugo
run: |
HUGO_VERSION=0.147.2
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz hugo
mv hugo /usr/local/bin/hugo
hugo version
- name: Build
run: hugo --minify
- name: Deploy
run: |
POD=$(kubectl get pods -n blog -l app=hugo-nginx -o jsonpath='{.items[0].metadata.name}')
kubectl cp public/. blog/${POD}:/usr/share/nginx/html/
+5
View File
@@ -0,0 +1,5 @@
public/
resources/
.hugo_build.lock
node_modules/
themes/PaperMod/
+3
View File
@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git
+7
View File
@@ -0,0 +1,7 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
description: ""
tags: []
draft: true
---
+13
View File
@@ -0,0 +1,13 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
description: ""
tags: []
draft: true
---
## Contexte
## Réalisation
## Résultat
+8
View File
@@ -0,0 +1,8 @@
.highlight {
border-radius: 8px;
margin: 1.5rem 0;
}
.post-tags a {
border-radius: 4px;
}
+3
View File
@@ -0,0 +1,3 @@
---
title: "Accueil"
---
+23
View File
@@ -0,0 +1,23 @@
---
title: "À propos"
description: "Qui suis-je ?"
hidemeta: true
---
## Qui suis-je ?
Physicien de formation, passionné d'électronique et d'informatique depuis toujours.
## Compétences
- **Physique** : ...
- **Électronique** : ...
- **Informatique** : ...
## Parcours
À compléter.
## Contact
À compléter.
+4
View File
@@ -0,0 +1,4 @@
---
title: "Blog"
description: "Réflexions, tutos et notes en vrac"
---
+17
View File
@@ -0,0 +1,17 @@
---
title: "Premier article"
date: 2024-01-20
description: "Mon premier article de blog"
tags: ["divers"]
draft: false
---
Contenu de ton premier article. Écris en Markdown, les équations LaTeX sont supportées.
Équation inline : $E = mc^2$
Équation en bloc :
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$
+4
View File
@@ -0,0 +1,4 @@
---
title: "Projets"
description: "Mes projets en électronique, informatique et physique"
---
@@ -0,0 +1,23 @@
---
title: "Mon premier projet"
date: 2024-01-15
description: "Description courte du projet"
tags: ["électronique", "arduino"]
draft: false
---
## Contexte
Décris ici le contexte du projet — pourquoi tu as voulu le faire, quel problème ça résout.
## Réalisation
Explique ce que tu as fait, les choix techniques, les difficultés rencontrées.
```python
print("Hello, World!")
```
## Résultat
Ce que tu as obtenu, ce que tu en as appris.
+6
View File
@@ -0,0 +1,6 @@
---
title: "Recherche"
layout: "search"
summary: "search"
placeholder: "Rechercher..."
---
+111
View File
@@ -0,0 +1,111 @@
baseURL: "https://blog.alocoq.fr/"
languageCode: "fr-FR"
language: "fr"
title: "John Doe"
theme: "PaperMod"
paginate: 10
enableRobotsTXT: true
buildDrafts: false
buildFuture: false
minify:
disableXML: true
minifyOutput: true
params:
env: production
title: "John Doe"
description: "Physicien passionné d'électronique et d'informatique"
author: "John Doe"
defaultTheme: auto
disableThemeToggle: false
ShowReadingTime: true
ShowShareButtons: false
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
ShowWordCount: false
ShowRssButtonInSectionTermList: true
UseHugoToc: true
showtoc: true
tocopen: false
comments: false
hidemeta: false
hideSummary: false
label:
text: "John Doe"
homeInfoParams:
Title: "Bonjour, je suis John Doe 👋"
Content: >
Physicien passionné d'électronique et d'informatique.
Sur ce site, je documente mes projets, mes expériences et mes réflexions.
socialIcons:
- name: github
url: "https://github.com/johndoe"
- name: email
url: "mailto:john@doe.fr"
cover:
hidden: false
hiddenInList: false
hiddenInSingle: false
editPost:
URL: "https://gitea.alocoq.fr/johndoe/CoqBlog/edit/main/content"
Text: "Modifier"
appendFilePath: true
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10
keys: ["title", "permalink", "summary", "content"]
menu:
main:
- identifier: projets
name: Projets
url: /projets/
weight: 10
- identifier: blog
name: Blog
url: /blog/
weight: 20
- identifier: a-propos
name: À propos
url: /a-propos/
weight: 30
- identifier: tags
name: Tags
url: /tags/
weight: 40
- identifier: recherche
name: Recherche
url: /recherche/
weight: 50
pygmentsUseClasses: true
markup:
highlight:
noClasses: false
codeFences: true
guessSyntax: true
lineNos: true
style: monokai
goldmark:
renderer:
unsafe: true
outputs:
home:
- HTML
- RSS
- JSON
+4
View File
@@ -0,0 +1,4 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"
onload="renderMathInElement(document.body, {delimiters: [{left: '$$', right: '$$', display: true}, {left: '$', right: '$', display: false}]});"></script>
+1
Submodule themes/PaperMod added at 154d006e01