Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(docs): exclude alternate pages from sitemap and add trailing slashes to nav (#2320)
Maximilian Roos56d7bb825d15
diff --git a/docs/config.toml b/docs/config.tomlindex be0b90e24..5f5d1c151 100644--- a/docs/config.toml+++ b/docs/config.toml@@ -23,7 +23,7 @@ rust_crate = "worktrunk"github_repo = "max-sixty/worktrunk"site_description = "CLI for Git worktree management, designed for parallel AI agent workflows."extra_menu = [- { title = "Worktrunk", link = "/worktrunk" },- { title = "Tips", link = "/tips-patterns" },+ { title = "Worktrunk", link = "/worktrunk/" },+ { title = "Tips", link = "/tips-patterns/" },{ title = "GitHub", link = "https://github.com/max-sixty/worktrunk" },]diff --git a/docs/templates/sitemap.xml b/docs/templates/sitemap.xmlindex 999cda60c..6e5bd553c 100644--- a/docs/templates/sitemap.xml+++ b/docs/templates/sitemap.xml@@ -1,6 +1,8 @@<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">{%- for sitemap_entry in entries %}+ {#- Skip pages that declare a non-self canonical — only canonical URLs belong in the sitemap. #}+ {%- if not sitemap_entry.extra.canonical %}<url><loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc>{%- if sitemap_entry.updated %}@@ -9,5 +11,6 @@<lastmod>{{ now() | date(format="%Y-%m-%d") }}</lastmod>{%- endif %}</url>+ {%- endif %}{%- endfor %}</urlset>