From 6bed38480542135979535c6feddbc90c31bfa91c Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 2 Nov 2020 03:35:54 +0000 Subject: [PATCH] Disable rendering useless pages --- pelicanconf.py | 11 +++++++++++ publishconf.py | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/pelicanconf.py b/pelicanconf.py index f891e14..ab8c8c6 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -38,3 +38,14 @@ MARKDOWN = { #RELATIVE_URLS = True THEME = 'themes/theme' + +# turn off useless outputs +TAG_SAVE_AS = '' +CATEGORY_SAVE_AS = '' +AUTHOR_SAVE_AS = '' +ARCHIVES_SAVE_AS = '' +AUTHORS_SAVE_AS = '' +CATEGORIES_SAVE_AS = '' +TAGS_SAVE_AS = '' + +PROD = False diff --git a/publishconf.py b/publishconf.py index 0b5cfa9..8c33376 100644 --- a/publishconf.py +++ b/publishconf.py @@ -39,3 +39,19 @@ MARKDOWN = { THEME = 'themes/theme' +# turn off useless outputs +TAG_SAVE_AS = '' +CATEGORY_SAVE_AS = '' +AUTHOR_SAVE_AS = '' +ARCHIVES_SAVE_AS = '' +AUTHORS_SAVE_AS = '' +CATEGORIES_SAVE_AS = '' +TAGS_SAVE_AS = '' + +INDEX_SAVE_AS = 'index.php' +ARTICLE_URL = '{slug}/' +ARTICLE_SAVE_AS = '{slug}/index.php' +PAGE_URL = '{slug}/' +PAGE_SAVE_AS = '{slug}/index.php' + +PROD = True