From 26c89ad81f03657fb25c10e8f3b13917dd73a4ed Mon Sep 17 00:00:00 2001 From: funkyoushift Date: Thu, 16 Jul 2026 03:27:29 -0400 Subject: [PATCH] Clean up site foundation and gallery --- .github/workflows/validate-site.yml | 19 ++ CHANGELOG_FUNKYOUSHIFT.md | 9 + CLOUDFLARE_SETUP.md | 34 +++ _redirects | 2 + borderlands-builds.html | 10 +- borderlands-discord.html | 10 +- borderlands-modding.html | 26 +-- borderlands-resources.html | 31 +-- donate.html | 10 +- downloads/borderlands-4-trainer.html | 3 - gallery-manifest.js | 326 --------------------------- gallery.html | 133 ++++++----- giveaway.html | 10 +- index.html | 14 +- merch.html | 10 +- robots.txt | 1 - site.js | 11 - sitemap.xml | 22 +- style.css | 115 ++++++++++ update_site.py | 137 ----------- validate_site.py | 160 +++++++++++++ video.html | 10 +- 22 files changed, 486 insertions(+), 617 deletions(-) create mode 100644 .github/workflows/validate-site.yml create mode 100644 CLOUDFLARE_SETUP.md delete mode 100644 downloads/borderlands-4-trainer.html delete mode 100644 gallery-manifest.js delete mode 100644 update_site.py create mode 100644 validate_site.py diff --git a/.github/workflows/validate-site.yml b/.github/workflows/validate-site.yml new file mode 100644 index 0000000..6b116dd --- /dev/null +++ b/.github/workflows/validate-site.yml @@ -0,0 +1,19 @@ +name: Validate static site + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: python validate_site.py diff --git a/CHANGELOG_FUNKYOUSHIFT.md b/CHANGELOG_FUNKYOUSHIFT.md index 3e0f1ca..c0534be 100644 --- a/CHANGELOG_FUNKYOUSHIFT.md +++ b/CHANGELOG_FUNKYOUSHIFT.md @@ -456,3 +456,12 @@ - Restored the Ki11er Six Builds card as an embedded Borderlands 4 build video instead of a channel-only link. - Uses the Ki11er Six Borderlands 4 WHIPLASH Amon Build Guide thumbnail and click-to-load YouTube embed. - Bumped cache version to 4.0.27. +# v4.1.0 - Site foundation cleanup + +- Removed the obsolete Borderlands 4 trainer page and FLiNG references. +- Promoted Matt's SDK Boosting Tools as the first-party BL4 utility. +- Replaced the generated duplicate gallery with a smaller curated gallery. +- Fixed internal homepage and navigation links and added retired-URL redirect mappings. +- Removed the stale one-off update script and gallery manifest. +- Added automated HTML, metadata, JSON-LD, sitemap, and local-link validation. +- Documented the Cloudflare redirect and analytics setup required by the GitHub Pages deployment. diff --git a/CLOUDFLARE_SETUP.md b/CLOUDFLARE_SETUP.md new file mode 100644 index 0000000..66bcd67 --- /dev/null +++ b/CLOUDFLARE_SETUP.md @@ -0,0 +1,34 @@ +# Cloudflare setup for FunkYouSHiFT + +The website is deployed by GitHub Pages and proxied through Cloudflare. GitHub Pages does not process the repository's `_redirects` file, so production redirects must be configured at Cloudflare. + +## Redirects + +In **Cloudflare > Rules > Redirect Rules**, create permanent (301) static redirects for these paths on `www.funkyoushift.com`: + +| Old path(s) | Destination | +| --- | --- | +| `/index.html` | `/` | +| `/discord`, `/discord.html`, `/borderlands-discord` | `/borderlands-discord.html` | +| `/borderlands-trading`, `/borderlands-trading.html` | `/borderlands-discord.html` | +| `/borderlands-modded-weapons`, `/borderlands-modded-weapons.html` | `/borderlands-modding.html` | +| `/borderlands-build-videos`, `/borderlands-build-videos.html` | `/borderlands-builds.html` | +| `/tools`, `/resources`, `/editors`, `/save-editors`, `/modding-tools`, `/borderlands-tools` | `/borderlands-resources.html` | +| `/sdk-mods`, `/pc-mods`, `/borderlands-sdk-mods`, `/borderlands-save-editors`, `/borderlands-editor`, `/item-editor` | `/borderlands-resources.html` | +| `/downloads/borderlands-4-trainer.html`, `/downloads/Borderlands%204.exe` | `https://github.com/funkyoushift/MattsSDKBoostingTools/releases/latest` | + +Preserve query strings and use status code 301. Keep the small `noindex` HTML fallback pages until these rules are confirmed live; they prevent old links from becoming dead links. + +## Analytics baseline + +Enable **Cloudflare Web Analytics** for `www.funkyoushift.com`. It provides privacy-focused traffic and page-view reporting without adding Google Analytics to every page. Use the first 30 days as the baseline for: + +- visits landing on the homepage, Tools, Modding, Builds, and Discord pages; +- top search landing pages and referrers; +- mobile versus desktop traffic. + +Cloudflare Web Analytics does not report custom CTA click events. If exact Twitch, Discord, and Matt's Tools button conversions are needed, add GA4 or another event-capable analytics service as a separate follow-up. Cloudflare analytics also does not replace Google Search Console. Keep `https://www.funkyoushift.com/sitemap.xml` submitted in Search Console and review Queries and Pages monthly. + +## Current API limitation + +The connected Cloudflare API can read the zone and DNS records, but it cannot currently manage Rules or Web Analytics (Cloudflare error 10000). Grant Rules edit and Web Analytics edit access before trying to automate these two dashboard steps. diff --git a/_redirects b/_redirects index 799b9b6..688fb0f 100644 --- a/_redirects +++ b/_redirects @@ -25,3 +25,5 @@ https://funkyoushift.com/* https://www.funkyoushift.com/:splat 301! /borderlands-save-editors /borderlands-resources.html 301! /borderlands-editor /borderlands-resources.html 301! /item-editor /borderlands-resources.html 301! +/downloads/borderlands-4-trainer.html https://github.com/funkyoushift/MattsSDKBoostingTools/releases/latest 301! +/downloads/Borderlands%204.exe https://github.com/funkyoushift/MattsSDKBoostingTools/releases/latest 301! diff --git a/borderlands-builds.html b/borderlands-builds.html index 3bb64f9..bb1bdce 100644 --- a/borderlands-builds.html +++ b/borderlands-builds.html @@ -15,7 +15,7 @@ - + - +