You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@petri.apache.org by wa...@apache.org on 2021/03/18 18:45:39 UTC
[petri-site] branch master updated: Add sitemap plugin
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/petri-site.git
The following commit(s) were added to refs/heads/master by this push:
new 17599e8 Add sitemap plugin
17599e8 is described below
commit 17599e84a9856a9014f769fd58cee371d584ee85
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Thu Mar 18 11:45:34 2021 -0700
Add sitemap plugin
---
pelicanconf.py | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/pelicanconf.py b/pelicanconf.py
index 0857a4c..5052431 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -67,9 +67,27 @@ AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# TOC Generator
-PLUGIN_PATHS = ['./theme/plugins']
+# PLUGIN_PATHS = ['./theme/plugins']
# PLUGINS = ['toc']
-TOC_HEADERS = r"h[1-6]"
+# TOC_HEADERS = r"h[1-6]"
+
+# Sitemap Generator
+PLUGIN_PATHS = ['./plugins']
+PLUGINS = ['sitemap']
+SITEMAP = {
+ "exclude": ["tag/", "category/"],
+ "format": "xml",
+ "priorities": {
+ "articles": 0.1,
+ "indexes": 0.1,
+ "pages": 0.8
+ },
+ "changefreqs": {
+ "articles": "never",
+ "indexes": "never",
+ "pages": "monthly"
+ }
+}
# Unused links
LINKS = ( )