commit 15019b06941888fce1f25d3b475f071add19a852 Author: Aloïs Coquillard Date: Thu May 21 10:47:33 2026 +0200 feat: initialisation du blog diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..d4a55d7 --- /dev/null +++ b/.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/.gitignore b/.gitignore new file mode 100644 index 0000000..6a1232a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +public/ +resources/ +.hugo_build.lock +node_modules/ +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/archetypes/blog.md b/archetypes/blog.md new file mode 100644 index 0000000..fe6322b --- /dev/null +++ b/archetypes/blog.md @@ -0,0 +1,7 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +description: "" +tags: [] +draft: true +--- diff --git a/archetypes/projets.md b/archetypes/projets.md new file mode 100644 index 0000000..5f83c1a --- /dev/null +++ b/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/assets/css/extended/custom.css b/assets/css/extended/custom.css new file mode 100644 index 0000000..57a932e --- /dev/null +++ b/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/content/_index.md b/content/_index.md new file mode 100644 index 0000000..e3b4491 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ +--- +title: "Accueil" +--- diff --git a/content/a-propos/index.md b/content/a-propos/index.md new file mode 100644 index 0000000..789c4d7 --- /dev/null +++ b/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/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..c1495dd --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,4 @@ +--- +title: "Blog" +description: "Réflexions, tutos et notes en vrac" +--- diff --git a/content/blog/premier-article.md b/content/blog/premier-article.md new file mode 100644 index 0000000..7e9165d --- /dev/null +++ b/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/content/projets/_index.md b/content/projets/_index.md new file mode 100644 index 0000000..07dfa28 --- /dev/null +++ b/content/projets/_index.md @@ -0,0 +1,4 @@ +--- +title: "Projets" +description: "Mes projets en électronique, informatique et physique" +--- diff --git a/content/projets/mon-premier-projet.md b/content/projets/mon-premier-projet.md new file mode 100644 index 0000000..a827f4b --- /dev/null +++ b/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/content/recherche.md b/content/recherche.md new file mode 100644 index 0000000..59fc42d --- /dev/null +++ b/content/recherche.md @@ -0,0 +1,6 @@ +--- +title: "Recherche" +layout: "search" +summary: "search" +placeholder: "Rechercher..." +--- diff --git a/hugo.yml b/hugo.yml new file mode 100644 index 0000000..77f20d2 --- /dev/null +++ b/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/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html new file mode 100644 index 0000000..807c6a1 --- /dev/null +++ b/layouts/shortcodes/katex.html @@ -0,0 +1,4 @@ + + +