Add agent tooling and restore the legal footer links
The footer override at layouts/partials/footer.html stopped being applied when PaperMod moved its partials to layouts/_partials/: the Datenschutz and Impressum links had silently vanished from the live site, and the copied theme JS was stale. Drop the 135-line fork and get the links from params.footer.text, which the theme renders itself. Agentic setup: - AGENTS.md: repo map, writing rules, guardrails, definition of done, backlog - Makefile: dockerised build/serve/check/new/clean, pinned Hugo 0.169.0 - scripts/new-post.sh: creates a correct draft page bundle - scripts/check-links.py: fails on unresolved internal links - .editorconfig for consistent whitespace CI/build: - pin ghcr.io/gohugoio/hugo to v0.169.0 instead of :latest - serialise runs per ref so deploys cannot race - only send the Telegram notification for pushes Also: trailing slash on the howto menu URL, ignore .hugo_build.lock, document the dead Universal Analytics ID, and remove two unused duplicate images (304 KB).
This commit is contained in:
1 parent
94ea700088
commit
9a02ee8111
12 files changed
+320
-139
No files matched your search
@@ -6,6 +6,11 @@ on:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
# Serialise deploys per ref so two quick pushes cannot publish out of order.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -15,11 +20,13 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# The image runs as a non-root user, so the mounted workspace must be
|
||||
# writable. Keep HUGO_VERSION in sync with the Makefile.
|
||||
- name: Prepare workspace
|
||||
run: chmod -R 777 .
|
||||
run: chmod -R a+rwX .
|
||||
|
||||
- name: Build
|
||||
uses: docker://ghcr.io/gohugoio/hugo:latest
|
||||
uses: docker://ghcr.io/gohugoio/hugo:v0.169.0
|
||||
with:
|
||||
args: --minify
|
||||
|
||||
@@ -37,7 +44,7 @@ jobs:
|
||||
strip_components: 1
|
||||
|
||||
- name: Send Telegram notification
|
||||
if: always()
|
||||
if: always() && github.event_name == 'push'
|
||||
uses: appleboy/telegram-action@v0.1.1
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
|
||||
Reference in new issue
Block a user