Files
felhom.eu/documentation/audits/website-refresh-2026-10-08/tools/build_404.py
T
admin 67b3fd23d1
gates / gates (push) Failing after 13m1s
website refresh: true numbers (56 apps), claims checked against the capability map, ten missing apps, an English twin of every public page (public, choice B), 404 page; site gates 13-18 + 11 decoys; R-902 opened
Part A: claim table documentation/audits/website-refresh-2026-10-08/claims.md; "100% open source" corrected
from the licence read; unbacked claims cut (firewall, RAID, snapshots, new-machine restore, self-managed
mode, household VPN, "never lost"). Part B: dawarich, docmost, grimmory, homebox, karakeep, mealie, metube,
radicale, recipe-importer, sparkyfitness cards; plant-it and wger cut (not offered). Part C: /en/ twins,
nav language switch, hreflang both ways, sitemap with xhtml:link, og-image-en.png. Part D: site_gates.py
twins/lang/same-apps/no-Hungarian/FAQ-JSON-LD/tail. Operator ruling 9 + choice B in 10-localisation.md §11,
§10.7. Register: R-902 (contact mailer source in no repo); R-813, R-784, R-559 annotated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-08 08:29:17 +02:00

46 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
"""404.html — nginx's error_page target (manifests/webpage.yaml). Hungarian first, one English line, a link home.
Every asset path is absolute: the page is served at whatever URL was wrong."""
import re, sys
sys.path.insert(0, __file__.rsplit("/", 1)[0])
from common import *
src = read("letoltes.html")
tail = src[src.index(" <footer>"):] # footer + the menu script, identical to the other HU pages
page = """<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Az oldal nem található | Felhom.eu</title>
<meta name="robots" content="noindex, follow">
<!-- shared assets: bump ?v= together on any site.css/icons.svg change -->
<link rel="stylesheet" href="/assets/site.css?v=2">
<link rel="icon" type="image/png" href="/assets/logo_favicon_2.svg">
<script defer src="https://stats.felhom.eu/script.js" data-website-id="d419db57-5e1c-48df-bdb3-c29f25fb1661"></script>
</head>
<body class="page-404">
%s
<div class="mobile-overlay" id="mobileOverlay"></div>
<main>
<section class="page-header">
<div class="container">
<h1>Ez az oldal <span>nem található</span></h1>
<p>A keresett cím nem létezik, vagy elköltözött. A kezdőlapról mindent elérsz.</p>
<p lang="en">This page does not exist. <a href="/en/">Go to the English home page</a>.</p>
</div>
</section>
<section class="content-section">
<div class="container">
<div class="apps-cta">
<a href="/" class="cta-button">Vissza a kezdőlapra →</a>
</div>
</div>
</section>
</main>
%s""" % (nav("hu", None, "/en/"), tail)
write("404.html", page)
print("written 404.html")