mirror of
https://github.com/agresdominik/website.git
synced 2026-07-21 08:00:55 +00:00
cleanup
This commit is contained in:
Executable
+4
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user