From 068d38aac64f44a5ebc8eb6f042c048894a27c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Coquillard?= Date: Thu, 21 May 2026 10:45:23 +0200 Subject: [PATCH] feat: initialisation du blog --- .gitmodules | 3 + blog.tar.gz | Bin 0 -> 3262 bytes blog/.gitea/workflows/deploy.yml | 31 ++++++ blog/.gitignore | 5 + blog/.gitmodules | 3 + blog/archetypes/blog.md | 7 ++ blog/archetypes/projets.md | 13 +++ blog/assets/css/extended/custom.css | 8 ++ blog/content/_index.md | 3 + blog/content/a-propos/index.md | 23 +++++ blog/content/blog/_index.md | 4 + blog/content/blog/premier-article.md | 17 ++++ blog/content/projets/_index.md | 4 + blog/content/projets/mon-premier-projet.md | 23 +++++ blog/content/recherche.md | 6 ++ blog/hugo.yml | 111 +++++++++++++++++++++ blog/layouts/shortcodes/katex.html | 4 + themes/PaperMod | 1 + 18 files changed, 266 insertions(+) create mode 100644 .gitmodules create mode 100644 blog.tar.gz create mode 100644 blog/.gitea/workflows/deploy.yml create mode 100644 blog/.gitignore create mode 100644 blog/.gitmodules create mode 100644 blog/archetypes/blog.md create mode 100644 blog/archetypes/projets.md create mode 100644 blog/assets/css/extended/custom.css create mode 100644 blog/content/_index.md create mode 100644 blog/content/a-propos/index.md create mode 100644 blog/content/blog/_index.md create mode 100644 blog/content/blog/premier-article.md create mode 100644 blog/content/projets/_index.md create mode 100644 blog/content/projets/mon-premier-projet.md create mode 100644 blog/content/recherche.md create mode 100644 blog/hugo.yml create mode 100644 blog/layouts/shortcodes/katex.html create mode 160000 themes/PaperMod diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/blog.tar.gz b/blog.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..336f7bab36e8280ac3446ca8a219f7c4226d0e1f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G?sWN<>VAZ~~&IC)6i<5JIHx0-+Jap)W#}JVz?G!BHL%29ko{GJ6N0 z%aQLLaIw^Q&_al%V&Bm;zx6kVAa*vcuNjlnL=dU>&p{hI4sOA5?PBFlw!x&I5jNJ> z6E`-W7&3m-1TbV~)>e(<()($_!v^J$d^^|i)yvd5o`*|9%ucr`vU09twb(tI zj?@!_SWlvGV0>Tl)rMGVIXRD1Q_EulWV=mFs_9ryzf))#_FG zUm3`*|DT_OUpL$Ok^LMdFI217kpA~$oFbu%i*!#IG_@bW5s(Ud1r|HM7CXKcn*`qX zy;iu2qWve~-CAA1D*JDDvi`pn@BeO9_Fo3dwEz68eOF$*%e?^izMso)1&j5+WCi6e z##lN3XTSg4?Z)w6wg0;myj(1vp;}>QPwkcUkzQ6oTc~ix`UtXEAYW5L!X8yKa16RU wOw7VUJ?*8ntg`D06)IGyP@zJF3Kc3;s8FFog$flaR457m1BvoHW&n5q09uB2ApigX literal 0 HcmV?d00001 diff --git a/blog/.gitea/workflows/deploy.yml b/blog/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..d4a55d7 --- /dev/null +++ b/blog/.gitea/workflows/deploy.yml @@ -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/ diff --git a/blog/.gitignore b/blog/.gitignore new file mode 100644 index 0000000..6a1232a --- /dev/null +++ b/blog/.gitignore @@ -0,0 +1,5 @@ +public/ +resources/ +.hugo_build.lock +node_modules/ +themes/PaperMod/ diff --git a/blog/.gitmodules b/blog/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/blog/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/blog/archetypes/blog.md b/blog/archetypes/blog.md new file mode 100644 index 0000000..fe6322b --- /dev/null +++ b/blog/archetypes/blog.md @@ -0,0 +1,7 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +description: "" +tags: [] +draft: true +--- diff --git a/blog/archetypes/projets.md b/blog/archetypes/projets.md new file mode 100644 index 0000000..5f83c1a --- /dev/null +++ b/blog/archetypes/projets.md @@ -0,0 +1,13 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +description: "" +tags: [] +draft: true +--- + +## Contexte + +## Réalisation + +## Résultat diff --git a/blog/assets/css/extended/custom.css b/blog/assets/css/extended/custom.css new file mode 100644 index 0000000..57a932e --- /dev/null +++ b/blog/assets/css/extended/custom.css @@ -0,0 +1,8 @@ +.highlight { + border-radius: 8px; + margin: 1.5rem 0; +} + +.post-tags a { + border-radius: 4px; +} diff --git a/blog/content/_index.md b/blog/content/_index.md new file mode 100644 index 0000000..e3b4491 --- /dev/null +++ b/blog/content/_index.md @@ -0,0 +1,3 @@ +--- +title: "Accueil" +--- diff --git a/blog/content/a-propos/index.md b/blog/content/a-propos/index.md new file mode 100644 index 0000000..789c4d7 --- /dev/null +++ b/blog/content/a-propos/index.md @@ -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. diff --git a/blog/content/blog/_index.md b/blog/content/blog/_index.md new file mode 100644 index 0000000..c1495dd --- /dev/null +++ b/blog/content/blog/_index.md @@ -0,0 +1,4 @@ +--- +title: "Blog" +description: "Réflexions, tutos et notes en vrac" +--- diff --git a/blog/content/blog/premier-article.md b/blog/content/blog/premier-article.md new file mode 100644 index 0000000..7e9165d --- /dev/null +++ b/blog/content/blog/premier-article.md @@ -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} +$$ diff --git a/blog/content/projets/_index.md b/blog/content/projets/_index.md new file mode 100644 index 0000000..07dfa28 --- /dev/null +++ b/blog/content/projets/_index.md @@ -0,0 +1,4 @@ +--- +title: "Projets" +description: "Mes projets en électronique, informatique et physique" +--- diff --git a/blog/content/projets/mon-premier-projet.md b/blog/content/projets/mon-premier-projet.md new file mode 100644 index 0000000..a827f4b --- /dev/null +++ b/blog/content/projets/mon-premier-projet.md @@ -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. diff --git a/blog/content/recherche.md b/blog/content/recherche.md new file mode 100644 index 0000000..59fc42d --- /dev/null +++ b/blog/content/recherche.md @@ -0,0 +1,6 @@ +--- +title: "Recherche" +layout: "search" +summary: "search" +placeholder: "Rechercher..." +--- diff --git a/blog/hugo.yml b/blog/hugo.yml new file mode 100644 index 0000000..77f20d2 --- /dev/null +++ b/blog/hugo.yml @@ -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 diff --git a/blog/layouts/shortcodes/katex.html b/blog/layouts/shortcodes/katex.html new file mode 100644 index 0000000..807c6a1 --- /dev/null +++ b/blog/layouts/shortcodes/katex.html @@ -0,0 +1,4 @@ + + + diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..154d006 --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 154d006e0182dfc7da38008323976b02e6bfab4a