-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Breck Yunits
authored and
Breck Yunits
committed
Apr 27, 2024
1 parent
5b0b66f
commit 2bab4c8
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#text | ||
printSiteMapParser | ||
description Prints out a plain text sitemap for a folder. | ||
extends abstractScrollParser | ||
cruxFromId | ||
cells keywordCell | ||
example | ||
baseUrl http://test.com | ||
printSiteMap | ||
javascript | ||
compile() { | ||
const file = this.root.file | ||
const { baseUrl } = file | ||
const files = file.allFiles.filter(file => file.shouldBuild && file.permalink.endsWith(".html") && file.permalink !== "404.html" || file.permalink.endsWith(".htm")) | ||
return files.map(file => baseUrl + file.permalink).join("\n") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
baseUrl https://scroll.pub/ | ||
permalink sitemap.txt | ||
printSiteMap |