From: Valentin Gagarin <valentin@gagarin.work>
To: devel@spectrum-os.org
Cc: Valentin Gagarin <valentin@gagarin.work>
Subject: [PATCH] Documentation: exclude redirected locations from the sitemap
Date: Wed, 22 Jul 2026 11:17:57 +0200 [thread overview]
Message-ID: <20260722091757.4576-1-valentin@gagarin.work> (raw)
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 <valentin@gagarin.work>
---
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
next reply other threads:[~2026-07-22 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 9:17 Valentin Gagarin [this message]
2026-07-24 12:58 ` [PATCH] Documentation: exclude redirected locations from the sitemap Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260722091757.4576-1-valentin@gagarin.work \
--to=valentin@gagarin.work \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).