Skip to content

Commit 7c6fab9

Browse files
committed
fix: Use Hugo's built-in sitemap for proper XML formatting
- Removed custom sitemap template causing minification issues - Using Hugo's default sitemap generator for proper formatting - Should resolve Google Search Console 'Couldn't fetch' error
1 parent 18c1ace commit 7c6fab9

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

portfolio/config.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ canonifyURLs = true
2727
linkedin = "https://linkedin.com/in/debdyuthajra"
2828
github = "https://github.com/Debdyut"
2929

30-
# Sitemap configuration
30+
# Sitemap configuration - use Hugo's built-in
3131
[sitemap]
3232
changefreq = "weekly"
3333
priority = 0.5
3434
filename = "sitemap.xml"
3535

36-
# Exclude certain pages from sitemap
37-
[taxonomies]
38-
category = "categories"
39-
tag = "tags"
36+
# Output formats
37+
[outputs]
38+
home = ["HTML", "RSS", "JSON"]
39+
page = ["HTML"]
40+
section = ["HTML", "RSS"]
4041

4142
ignoreLogs = ['warning-goldmark-raw-html']

portfolio/themes/basic/layouts/sitemap.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)