67b3fd23d1
gates / gates (push) Failing after 13m1s
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
26 lines
1.5 KiB
Python
26 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""sitemap.xml — every public page in both languages, each with its xhtml:link alternates (choice B)."""
|
|
import sys
|
|
sys.path.insert(0, __file__.rsplit("/", 1)[0])
|
|
from common import *
|
|
META = {"/": ("monthly", "1.0", "0.9"), "/alkalmazasok": ("monthly", "0.8", "0.7"), "/biztonsagimentes": ("monthly", "0.7", "0.6"),
|
|
"/technologiak": ("monthly", "0.7", "0.6"), "/gyik": ("monthly", "0.6", "0.5"), "/kapcsolat": ("yearly", "0.5", "0.4"),
|
|
"/letoltes": ("monthly", "0.3", "0.3")}
|
|
order = ["/", "/alkalmazasok", "/biztonsagimentes", "/technologiak", "/gyik", "/kapcsolat", "/letoltes"]
|
|
pairs = {p[1]: p[3] for p in PAIRS}
|
|
out = ['<?xml version="1.0" encoding="UTF-8"?>',
|
|
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">']
|
|
for lang in ("hu", "en"):
|
|
for hu in order:
|
|
en = pairs[hu]
|
|
freq, phu, pen = META[hu]
|
|
loc = hu if lang == "hu" else en
|
|
out += [" <url>", " <loc>%s%s</loc>" % (SITE, loc),
|
|
' <xhtml:link rel="alternate" hreflang="hu" href="%s%s"/>' % (SITE, hu),
|
|
' <xhtml:link rel="alternate" hreflang="en" href="%s%s"/>' % (SITE, en),
|
|
' <xhtml:link rel="alternate" hreflang="x-default" href="%s%s"/>' % (SITE, hu),
|
|
" <changefreq>%s</changefreq>" % freq, " <priority>%s</priority>" % (phu if lang == "hu" else pen), " </url>"]
|
|
out.append("</urlset>")
|
|
write("sitemap.xml", "\n".join(out))
|
|
print("written sitemap.xml:", 2 * len(order), "urls")
|