From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 0806C6F1F; Wed, 22 Jul 2026 13:41:58 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 27F646E21; Wed, 22 Jul 2026 09:18:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Flag: YES X-Spam-Level: **** X-Spam-Status: Yes, score=4.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,SPF_HELO_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Report: * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs * [URI: gagarin.work (work)] * 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD * 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD * 0.0 DMARC_MISSING Missing DMARC policy Received: from mail-108-mta123.mxroute.com (mail-108-mta123.mxroute.com [136.175.108.123]) by atuin.qyliss.net (Postfix) with ESMTPS id 4D5F06E1A for ; Wed, 22 Jul 2026 09:18:29 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta123.mxroute.com (ZoneMTA) with ESMTPSA id 19f891e7543000c8ef.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 22 Jul 2026 09:18:22 +0000 X-Zone-Loop: 4f2a9d954eb68eec63b1fbd4d3126e51f5e8f6b6fcc8 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gagarin.work; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date :Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mcIgYEoKnHDZ4XVvrEpUvFDpF+W0AR0EwKKazCWHI3E=; b=pt5xXvojkP845iQI1lCJOau02x 2q3ENSSLo0SW3k1aL06r+ohbibFjF+SogxOQSDiDNV324wwZr0zCsR0mSb+Gbicn8hc8FdPta1bVd N0AKw/9lY8rqxDM+Tr0JgBo0HjaR8dD/mRn+7mUTJZq+i24xsz1/ZuBhy8kcuswlh+YNGBCNdhHjK tsTBN3whuo/9pRb87oeVOYTOCeoh8RIpXO7dcpRtIaHbM68l/7jFcWiziCLM8ajn25GzPQssnXxvg d/MPhPUzKnKhbxdARnDgF23fkqI+QS30SF5Jlx2a0hXahRcCYNdW2yxhMsGbrvglXWYjarWriGisT S40qdkww==; From: Valentin Gagarin To: devel@spectrum-os.org Subject: [PATCH] Documentation: exclude redirected locations from the sitemap Date: Wed, 22 Jul 2026 11:17:57 +0200 Message-ID: <20260722091757.4576-1-valentin@gagarin.work> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: valentin@gagarin.work X-MailFrom: valentin@gagarin.work X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-4 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3 Message-ID-Hash: MPXRPFM3YXWYRT4NBH47AU7Z3ANWEG3T X-Message-ID-Hash: MPXRPFM3YXWYRT4NBH47AU7Z3ANWEG3T X-Mailman-Approved-At: Wed, 22 Jul 2026 13:41:56 +0000 CC: Valentin Gagarin X-Mailman-Version: 3.3.10 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The Jekyll plugin for redirects creates stub files, which would show up in the sitemap if not filtered out explicitly. Signed-off-by: Valentin Gagarin --- Documentation/_includes/sitemap.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/_includes/sitemap.html b/Documentation/_includes/sitemap.html index 4bc3e71..bcac1b4 100644 --- a/Documentation/_includes/sitemap.html +++ b/Documentation/_includes/sitemap.html @@ -17,7 +17,9 @@ which we assume if it is constructed by a directory and contains an index file. {%- capture inner -%} {%- assign candidates = site.html_pages | where_exp: "p", "p.url contains prefix" - | where_exp: "p", "p.url != prefix" -%} + | where_exp: "p", "p.url != prefix" + | where_exp: "p", "p.sitemap != false" + -%} {%- if prefix == default_root -%} {%- assign list_with_root_page = site.html_pages | where: "url", prefix -%} {%- assign candidates = list_with_root_page | concat: candidates -%} -- 2.54.0