From 3cc2d1bab9c21ac568d50aba3a8919cfd0f852f1 Mon Sep 17 00:00:00 2001 From: irrlicht Date: Wed, 6 May 2026 08:17:05 +0200 Subject: [PATCH] Hugo site init --- .githooks/pre-push | 10 ++++++++++ .gitignore | 2 ++ archetypes/default.md | 5 +++++ hugo.toml | 3 +++ 4 files changed, 20 insertions(+) create mode 100755 .githooks/pre-push create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 hugo.toml diff --git a/.githooks/pre-push b/.githooks/pre-push new file mode 100755 index 0000000..1a347f0 --- /dev/null +++ b/.githooks/pre-push @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +echo "Baue Hugo-Seite..." +hugo + +echo "Deploye nach deploy@bnd.wtf..." +rsync -avz --delete public/ deploy@bnd.wtf:/srv/www/bnd.wtf/ + +echo "Deploy erfolgreich." diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8dd6d56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +.hugo_build.lock diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..19c8846 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,3 @@ +baseURL = 'https://example.org/' +locale = 'en-us' +title = 'My New Hugo Project'