From 7918d7b2c6bfba98c068922a3cfb23f12236b25d Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 1 May 2016 23:07:53 -0400 Subject: basic pelican settings --- Makefile | 2 +- develop_server.sh | 2 +- pelicanconf.py | 33 ++++++++++++++++++++++++--------- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index bacb16a..64ac829 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PELICAN?=pelican PELICANOPTS= BASEDIR=$(CURDIR) -INPUTDIR=$(BASEDIR)/content +INPUTDIR=$(BASEDIR) OUTPUTDIR=$(BASEDIR)/output CONFFILE=$(BASEDIR)/pelicanconf.py PUBLISHCONF=$(BASEDIR)/publishconf.py diff --git a/develop_server.sh b/develop_server.sh index 8c2f27f..7d7f475 100755 --- a/develop_server.sh +++ b/develop_server.sh @@ -7,7 +7,7 @@ PELICAN=${PELICAN:-pelican} PELICANOPTS= BASEDIR=$(pwd) -INPUTDIR=$BASEDIR/content +INPUTDIR=$BASEDIR/ OUTPUTDIR=$BASEDIR/output CONFFILE=$BASEDIR/pelicanconf.py diff --git a/pelicanconf.py b/pelicanconf.py index b67f768..7cb5a40 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -4,20 +4,35 @@ from __future__ import unicode_literals AUTHOR = u'bnewbold' SITENAME = u'bnewbold.net' -SITEURL = '' +SITEURL = u'https://bnewbold.net' -PATH = 'content' +USE_FOLDER_AS_CATEGORY = True +DEFAULT_DATE = None +OUTPUT_SOURCES = True +OUTPUT_SOURCES_EXTENSION = '.raw' +SLUGIFY_SOURCE = 'basename' -TIMEZONE = 'America/New_York' +PATH = '.' +STATIC_PATHS = ['static'] +ARTICLE_PATHS = ['posts'] +PAGE_PATHS = ['pages'] +PLUGIN_PATHS = ['plugins'] + +ARTICLE_URL = '{date:%Y}/{slug}/' +ARTICLE_SAVE_AS = '{date:%Y}/{slug}/index.html' +PAGE_URL = '{slug}/' +PAGE_SAVE_AS = '{slug}/index.html' +YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html' + +TIMEZONE = 'UTC' DEFAULT_LANG = u'en' # Feed generation is usually not desired when developing -FEED_ALL_ATOM = None -CATEGORY_FEED_ATOM = None -TRANSLATION_FEED_ATOM = None -AUTHOR_FEED_ATOM = None -AUTHOR_FEED_RSS = None +FEED_ALL_ATOM = 'feeds/all.atom.xml' +CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' +FEED_ALL_RSS = 'feeds/all.rss.xml' +CATEGORY_FEED_RSS = 'feeds/%s.rss.xml' # Blogroll LINKS = (('Pelican', 'http://getpelican.com/'), @@ -32,4 +47,4 @@ SOCIAL = (('You can add links in your config file', '#'), DEFAULT_PAGINATION = False # Uncomment following line if you want document-relative URLs when developing -#RELATIVE_URLS = True +RELATIVE_URLS = True -- cgit v1.2.3