diff --git a/.github/workflows/copy-sync.yml b/.github/workflows/copy-sync.yml index 53ad660..3d2d95d 100644 --- a/.github/workflows/copy-sync.yml +++ b/.github/workflows/copy-sync.yml @@ -25,3 +25,5 @@ jobs: persist-credentials: false - name: Tagline and cards match the org profile README run: python3 -I scripts/check-copy.py + - name: Built site does not publish AGENTS.md or CLAUDE.md + run: python3 -I scripts/check-unpublished.py diff --git a/404.html b/404.html index 338a45a..a008287 100644 --- a/404.html +++ b/404.html @@ -1,7 +1,9 @@ --- layout: default title: Not found +description: That page is not here. Totative's write-ups and brand assets live at totative.dev. permalink: /404.html +noindex: true ---

Page not found

That page does not exist. Go to the home page.

diff --git a/_config.yml b/_config.yml index 761004a..136ec5b 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ title: Totative url: https://totative.dev permalink: /writeups/:title/ include: [".well-known"] -exclude: [README.md, scripts, lefthook.yml, .gitleaks.toml, Gemfile, Gemfile.lock, vendor] +exclude: [README.md, scripts, lefthook.yml, .gitleaks.toml, Gemfile, Gemfile.lock, vendor, AGENTS.md, CLAUDE.md] defaults: - scope: path: "" diff --git a/_layouts/default.html b/_layouts/default.html index 3a5ab8a..dc35fe7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -8,6 +8,14 @@ {% if page.title %}{{ page.title }} - {% endif %}Totative +{% if page.noindex %} +{% assign target = '/' %} + +{% else %} +{% assign target = page.url %} + +{% endif %} + @@ -21,6 +29,7 @@
+

This site has moved to totative.dev{{ target }}.

{{ content }}