* [PATCH] Documentation: exclude redirected locations from the sitemap
@ 2026-07-22 9:17 Valentin Gagarin
2026-07-24 12:58 ` Alyssa Ross
0 siblings, 1 reply; 2+ messages in thread
From: Valentin Gagarin @ 2026-07-22 9:17 UTC (permalink / raw)
To: devel; +Cc: Valentin Gagarin
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: exclude redirected locations from the sitemap
2026-07-22 9:17 [PATCH] Documentation: exclude redirected locations from the sitemap Valentin Gagarin
@ 2026-07-24 12:58 ` Alyssa Ross
0 siblings, 0 replies; 2+ messages in thread
From: Alyssa Ross @ 2026-07-24 12:58 UTC (permalink / raw)
To: Valentin Gagarin, devel; +Cc: Valentin Gagarin
This patch has been committed as 6a3fdfca7e9fe9ae8e2cccf3d3a2d3fcf9fbd220,
which can be viewed online at
https://spectrum-os.org/git/spectrum/commit/?id=6a3fdfca7e9fe9ae8e2cccf3d3a2d3fcf9fbd220.
This is an automated message. Send comments/questions/requests to:
Alyssa Ross <hi@alyssa.is>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-24 12:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 9:17 [PATCH] Documentation: exclude redirected locations from the sitemap Valentin Gagarin
2026-07-24 12:58 ` Alyssa Ross
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).