This is an automated email from the ASF dual-hosted git repository. snagel pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nutch-site.git
commit 5a076b00b7237960caef02f30e5a512deebaf818 Author: Sebastian Nagel <[email protected]> AuthorDate: Sun Jul 20 19:41:25 2025 +0200 Improve formatting of the sitemap.xml --- layouts/_default/sitemap.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 006e6ba..090be28 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -1,10 +1,9 @@ {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> - <url/> {{ range .Data.Pages }}{{ if ne .Params.sitemapExclude true }} - <url>{{ $url := urls.Parse .Permalink }} - <loc>{{ .Site.Params.SiteBaseURL }}{{ $url.Path }}</loc>{{ if not .Lastmod.IsZero }} - <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }} - </url>{{ end }}{{ end }} + <url>{{ $url := urls.Parse .Permalink }} + <loc>{{ .Site.Params.SiteBaseURL }}{{ $url.Path }}</loc>{{ if not .Lastmod.IsZero }} + <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }} + </url>{{ end }}{{ end }} </urlset>
