{{ .Title }}
+ +{{ .Summary }}
+diff --git a/.gitea/workflows/hugo-deploy.yml b/.gitea/workflows/hugo-deploy.yml new file mode 100644 index 0000000..441f168 --- /dev/null +++ b/.gitea/workflows/hugo-deploy.yml @@ -0,0 +1,23 @@ +name: Hugo Build & Deploy +on: + push: + branches: [main] + +jobs: + build-deploy: + runs-on: ubuntu-latest + container: + image: klakegg/hugo:ext-alpine + volumes: + - /var/www/blog.bojemoi.me:/deploy + steps: + - uses: actions/checkout@v4 + + - name: Build Hugo site + run: hugo --minify + + - name: Deploy to web root + run: | + rm -rf /deploy/* + cp -r public/* /deploy/ + echo "Deployed $(date -u '+%Y-%m-%d %H:%M:%S UTC')" > /deploy/.deployed diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..43dca9a --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .File.ContentBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +--- diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..22e2061 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ +--- +title: "Accueil" +--- + +Bienvenue sur le blog de Bojemoi Lab. diff --git a/content/posts/premier-article.md b/content/posts/premier-article.md new file mode 100644 index 0000000..e0a5708 --- /dev/null +++ b/content/posts/premier-article.md @@ -0,0 +1,15 @@ +--- +title: "Premier article" +date: 2026-02-06 +draft: false +--- + +Bienvenue sur le blog Bojemoi Lab. + +Ce blog est automatiquement buildé et déployé via **Gitea Actions** et **Hugo**. + +## Stack technique + +- **Hugo** pour la génération de site statique +- **Gitea Actions** + `act_runner` pour le CI/CD +- **Nginx** + Let's Encrypt pour le serving HTTPS diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..37b4346 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,10 @@ +baseURL = 'https://blog.bojemoi.me/' +languageCode = 'fr' +title = 'Bojemoi Blog' +theme = '' + +[params] + description = "Blog technique - Bojemoi Lab" + +[markup.goldmark.renderer] + unsafe = true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..2138a75 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,21 @@ + + +
+ + +{{ .Site.Params.description }}
+{{ .Summary }}
+{{ .Summary }}
+