Package: hugo
Version: 0.162.1-1
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

When running `hugo` or `hugo build` you end up w/ a sitemap.xml which has an
empty line. This causes XML parsers to complain.

$ head -5 public/sitemap.xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9";
  xmlns:xhtml="http://www.w3.org/1999/xhtml";>
  <url>

vs 0.164.0

$ head -5 public/sitemap.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9";
  xmlns:xhtml="http://www.w3.org/1999/xhtml";>
  <url>
    <loc>https://....</loc>

Upstream has solved this in 0.164.0 afaik, I tested 0.162.x on unstable,
0.163.0 and 0.164.0 from the ghcr, all but 0.164.0 exhibit the behaviour.

Could you please upgrade hugo to 0.164?

Many thanks,
Wesley


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (100, 'experimental'), (10, 
'stable-updates'), (10, 'stable-security'), (10, 'oldstable-updates'), (10, 
'oldstable-security'), (10, 'oldoldstable'), (10, 'stable'), (10, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.14+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hugo depends on:
ii  libc6     2.42-17
ii  libsass1  3.6.5+20231221-3+b2
ii  libwebp7  1.5.0-0.1+b2

Versions of packages hugo recommends:
ii  git         1:2.53.0-1
ii  golang-any  2:1.26~1

Versions of packages hugo suggests:
pn  asciidoctor       <none>
ii  nodejs [npm]      25.9.0-1nodesource1
ii  pandoc            3.10-1
ii  python3-docutils  0.22.4+dfsg-1

-- no debconf information

Reply via email to