<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GitHub Pages on Bits &amp; pieces - Sven Wehrend</title><link>https://wehrend.github.io/tags/github-pages/</link><description>Recent content in GitHub Pages on Bits &amp; pieces - Sven Wehrend</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 29 Oct 2026 10:00:00 +0000</lastBuildDate><atom:link href="https://wehrend.github.io/tags/github-pages/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo: Forcing a Valid XML Sitemap Instead of HTML Dumps</title><link>https://wehrend.github.io/til/repair-hugo-sitemap/</link><pubDate>Thu, 29 Oct 2026 10:00:00 +0000</pubDate><guid>https://wehrend.github.io/til/repair-hugo-sitemap/</guid><description>&lt;div class="sect2">
&lt;h3 id="_the_problem">The Problem&lt;/h3>
&lt;div class="paragraph">
&lt;p>When checking the sitemap on a Hugo website (e.g., hosted on GitHub Pages), you might occasionally land on an HTML page (&lt;code>/sitemap/&lt;/code>) where all URLs are jammed together without formatting or separating tags. Search engine crawlers (like Google) fail to parse such invalid sitemaps and will reject them entirely.&lt;/p>
&lt;/div>
&lt;/div>
&lt;div class="sect2">
&lt;h3 id="_the_solution">The Solution&lt;/h3>
&lt;div class="paragraph">
&lt;p>You can force Hugo to generate a clean, valid XML sitemap by providing a custom layout template.&lt;/p>
&lt;/div></description></item></channel></rss>