-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) add generate
sitemap.txt
(#136)
* (feat) add generate `sitemap.txt` - default generate `sitemap.txt` and `sitemap.xml` - `generator.js` judge `path` string or array - `template.js` `extname(path)` to chose template ``` sitemap: path: - sitemap.xml - sitemap.txt #remove it to disable template_txt: sitemap.txt #(optional) ``` * adjust generate txt and add test code. testcode: fix generator.js coverage branch coverage 100% and add txt test. * .txt test code fix * update README, delete comment out code.
- Loading branch information
Showing
6 changed files
with
145 additions
and
42 deletions.
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
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,5 @@ | ||
{% for post in posts %}{{ post.permalink | uriencode }} | ||
{% endfor %}{{ config.url | uriencode }} | ||
{% for tag in tags %}{{ tag.permalink | uriencode }} | ||
{% endfor %}{% for cat in categories %}{{ cat.permalink | uriencode }} | ||
{% endfor %} |
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