Skip to content

Commit bce4653

Browse files
committed
Corrections
1 parent 4a4ef25 commit bce4653

4 files changed

Lines changed: 8 additions & 38 deletions

File tree

config/home/_default/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,16 +953,16 @@ footer_about_disable = false
953953

954954

955955
[outputFormats]
956-
[outputFormats.PagesSitemap]
956+
[outputFormats.HomepageSitemap]
957957
mediaType = "application/xml"
958-
baseName = "pages-sitemap"
958+
baseName = "homepage-sitemap"
959959
isHTML = false
960960
isPlainText = false
961961
notAlternative = true
962962

963963
[outputs]
964-
home = ["HTML", "SITEMAP", "PagesSitemap"]
965-
section = ["HTML", "SITEMAP"]
964+
home = ["HTML", "SITEMAP", "HomepageSitemap"]
965+
966966

967967

968968
[deployment]

layouts/_default/section.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3-
{{ range .Site.RegularPages }}
4-
<url>
5-
<loc>{{ .Permalink }}</loc>
6-
<lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
7-
<changefreq>{{ .Params.changefreq | default "monthly" }}</changefreq>
8-
<priority>{{ .Params.priority | default "0.5" }}</priority>
9-
</url>
10-
{{ end }}
11-
{{/* Include homepage */}}
123
<url>
134
<loc>{{ .Site.BaseURL }}</loc>
145
<lastmod>{{ .Site.LastChange.Format "2006-01-02T15:04:05-07:00" }}</lastmod>

layouts/sitemap.xml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
22
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3-
{{/* Hugo-generated sitemaps */}}
4-
{{ range .Site.Sections }}
3+
{{/* Homepage sitemap */}}
54
<sitemap>
6-
<loc>{{ .Permalink }}sitemap.xml</loc>
7-
<lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
5+
<loc>{{ .Site.BaseURL }}homepage-sitemap.xml</loc>
6+
<lastmod>{{ .Site.LastChange.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
87
</sitemap>
9-
{{ end }}
108

11-
{{/* Main pages sitemap (if you have standalone pages) */}}
12-
{{ if .Site.RegularPages }}
13-
<sitemap>
14-
<loc>{{ .Site.BaseURL }}pages-sitemap.xml</loc>
15-
<lastmod>{{ now.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
16-
</sitemap>
17-
{{ end }}
18-
19-
{{/* Additional GroupDocs tutorial sitemaps */}}
9+
{{/* GroupDocs tutorial sitemaps */}}
2010
<sitemap>
2111
<loc>https://tutorials.groupdocs.com/viewer/sitemap.xml</loc>
2212
<lastmod>{{ now.Format "2006-01-02T15:04:05-07:00" }}</lastmod>

0 commit comments

Comments
 (0)