This commit is contained in:
2026-06-22 21:04:44 +02:00
parent 3931473799
commit c4cababe98
5 changed files with 37 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# Same check as CI: abort the commit if Hugo can't build cleanly.
make build || exit 1
make clean
+6
View File
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
+22
View File
@@ -0,0 +1,22 @@
name: Build Check
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.152.2"
extended: true
# Fails the run on any Hugo error (broken templates, shortcodes, refs).
- run: hugo --gc --minify --panicOnWarning
working-directory: blog
+2
View File
@@ -21,6 +21,8 @@ jobs:
key: ${{ secrets.VPS_SSH_KEY }}
port: 22
script: |
set -e
# Pull latest changes
cd /home/agres/website
git pull origin main
+3
View File
@@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Site.Params.browserTitle }} :: {{ .Title }}</title>
{{ with .Description }}<meta name="description" content="{{ . }}">{{ end }}
<link rel="canonical" href="{{ .Permalink }}">
{{ range .AllTranslations }}<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">
{{ end }}
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" href="/favicon.ico" sizes="any">