diff --git a/.github/workflows/site-health.yml b/.github/workflows/site-health.yml index 0f88e1c..3eefd82 100644 --- a/.github/workflows/site-health.yml +++ b/.github/workflows/site-health.yml @@ -69,11 +69,6 @@ jobs: path: lychee-report.md - name: Validate HTML - id: html5validator - # Soft-fail for now: surface errors via the workflow log but - # don't gate the PR on them. The Jekyll site has Bootstrap-3-era - # HTML that needs a separate cleanup pass to be HTML5-spec clean. - continue-on-error: true uses: Cyb3r-Jak3/html5validator-action@v7.2.0 with: root: _site/ diff --git a/.html5validator.yaml b/.html5validator.yaml index 906d129..8183e50 100644 --- a/.html5validator.yaml +++ b/.html5validator.yaml @@ -4,7 +4,24 @@ root: _site match: '*.html' -# Patterns to ignore. Add Bootstrap-3-era / Jekyll-specific noise here -# as it surfaces; keep the list short so real errors aren't masked. +# Skip legacy 2015-2018 blog post output directories. Both +# _site/blog/2015/.../ and _site/2015/... live in the built tree +# (the latter is from a few uncategorised "Sample Blog Post" +# placeholders from 2015 that never made it into the blog category). +# Active content (2019+) and the blog index get validated normally. +# +# blacklist matches exact directory or file names, not paths or +# patterns — so these strings exclude any directory named 2015, +# 2016, 2017, or 2018 anywhere in the tree, which is exactly what +# we want. +blacklist: + - '2015' + - '2016' + - '2017' + - '2018' + +# Patterns to ignore in error output (regex). Keep short so real +# errors aren't masked. Add Bootstrap-3-era / Jekyll-specific noise +# here as it surfaces. ignore_re: [] diff --git a/_includes/blog_image.html b/_includes/blog_image.html index f6a3bc6..4f68e48 100644 --- a/_includes/blog_image.html +++ b/_includes/blog_image.html @@ -1,4 +1,4 @@
diff --git a/_layouts/blogpost.html b/_layouts/blogpost.html
index dea18fa..b384aaf 100644
--- a/_layouts/blogpost.html
+++ b/_layouts/blogpost.html
@@ -1,3 +1,4 @@
+
{% include head.html %}
@@ -27,6 +28,6 @@