Skip to content

Commit b6ac46b

Browse files
committed
Add sitemap.xml/ redirect support for GitHub Pages
1 parent dc584cb commit b6ac46b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

portfolio/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ canonifyURLs = true
3232
changefreq = "weekly"
3333
priority = 0.5
3434

35+
# Output formats
36+
[outputs]
37+
home = ["HTML", "RSS", "sitemap"]
38+
3539
# Taxonomies
3640
[taxonomies]
3741
category = "categories"

portfolio/content/sitemap-alias.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
aliases:
3+
- /sitemap.xml/
4+
url: /sitemap.xml
5+
type: redirect
6+
---

portfolio/static/_redirects

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)