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 @@ - + -
+