138 lines
4.5 KiB
Python
138 lines
4.5 KiB
Python
from __future__ import unicode_literals
|
|
import time
|
|
BLOG_AUTHOR = "Don Harper" # (translatable)
|
|
BLOG_TITLE = "duckland.org" # (translatable)
|
|
SITE_URL = "https://www.duckland.org/"
|
|
BLOG_EMAIL = "duck@duckland.org"
|
|
BLOG_DESCRIPTION = "News from duckland.org" # (translatable)
|
|
DEFAULT_LANG = "en"
|
|
TRANSLATIONS = {
|
|
DEFAULT_LANG: "",
|
|
}
|
|
TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}"
|
|
NAVIGATION_LINKS = {
|
|
DEFAULT_LANG: (
|
|
('/index.html', 'Home'),
|
|
('/stories/about.html', 'About me'),
|
|
('/stories/privacy.html', 'Privacy'),
|
|
('/photos/', 'Photos'),
|
|
(
|
|
(
|
|
#('http://www.donaldharper.com', 'My Photo Blog'),
|
|
('https://p365.donaldharper.com', 'My Attempt at a Project 365'),
|
|
('https://www.duckland.org', 'My Personal and Tech Blog'),
|
|
),
|
|
'My Sites'
|
|
),
|
|
(
|
|
(
|
|
('https://twitter.com/duckunix', 'My Twitter'),
|
|
('https://plus.google.com/+DonHarper/', 'My Google+'),
|
|
('http://www.linkedin.com/in/donaldharper/', 'My LinkedIN'),
|
|
),
|
|
'Social Sites'
|
|
),
|
|
("/archive.html", "Archive"),
|
|
("/categories/index.html", "Tags"),
|
|
('/rss.xml', 'RSS'),
|
|
),
|
|
}
|
|
#THEME = "slate"
|
|
#THEME = "duckland"
|
|
#THEME = "superhero"
|
|
#THEME = "material-theme"
|
|
THEME = "slidemenu"
|
|
TIMEZONE = "CDT6CST"
|
|
DATE_FORMAT = '%Y-%m-%d'
|
|
JS_DATE_FORMAT = 'YYYY-MM-DD'
|
|
DATE_FANCINESS = 1
|
|
PRETTY_URLS = False
|
|
NEW_POST_DATE_PATH = False
|
|
NEW_POST_DATE_PATH_FORMAT = '%Y/%m'
|
|
POSTS = (
|
|
("posts/*.md", "posts", "post.tmpl"),
|
|
("posts/*.rst", "posts", "post.tmpl"),
|
|
("posts/*.txt", "posts", "post.tmpl"),
|
|
("posts/*.html", "posts", "post.tmpl"),
|
|
("posts/*.wp", "posts", "post.tmpl"),
|
|
)
|
|
PAGES = (
|
|
("stories/*.md", "stories", "story.tmpl"),
|
|
("stories/*.rst", "stories", "story.tmpl"),
|
|
("stories/*.txt", "stories", "story.tmpl"),
|
|
)
|
|
COMPILERS = {
|
|
"markdown": ('.md', '.mdown', '.markdown'),
|
|
"rest": ('.rst', '.txt'),
|
|
"textile": ('.textile',),
|
|
"txt2tags": ('.t2t',),
|
|
"bbcode": ('.bb',),
|
|
"wiki": ('.wiki',),
|
|
"ipynb": ('.ipynb',),
|
|
"html": ('.html', '.htm', '.wp'),
|
|
"php": ('.php',),
|
|
}
|
|
WRITE_TAG_CLOUD = True
|
|
HIDDEN_TAGS = ['mathjax']
|
|
HIDDEN_CATEGORIES = []
|
|
SHOW_BLOG_TITLE = True
|
|
FEED_LENGTH = 10
|
|
REDIRECTIONS = []
|
|
IMAGE_FOLDERS = {'images': 'images'}
|
|
INDEX_READ_MORE_LINK = '<p class="more"><a href="{link}">{read_more}</a></p>'
|
|
FEED_READ_MORE_LINK = '<p><a href="{link}">{read_more}</a> ({min_remaining_read})</p>'
|
|
FEED_LINKS_APPEND_QUERY = False
|
|
DEPLOY_COMMANDS = {
|
|
'default': [
|
|
#"git pull",
|
|
"cd sigal; sigal build",
|
|
"nikola build",
|
|
"nikola check -l",
|
|
"cp .htaccess output/",
|
|
"chmod -R a+rX output/",
|
|
"rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l duck' output/ wise.dreamhost.com:httpd/duckland.org/nikola",
|
|
#"rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l don' ./ don@web.duckland.org:/srv/http/work/www.duckland.org",
|
|
"git add -A",
|
|
"git commit -m\"auto commit due to nikola deploy $(date)\"",
|
|
"git push",
|
|
]
|
|
}
|
|
INDEX_READ_MORE_LINK = '<p class="more"><a href="{link}">{read_more}...a></p>'
|
|
FEED_READ_MORE_LINK = '<p><a href="{link}">{read_more}...a> ({min_remaining_read})</p>'
|
|
LICENSE = ""
|
|
CONTENT_FOOTER = 'Contents © {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="http://getnikola.com" rel="nofollow">Nikola</a> {license}'
|
|
CONTENT_FOOTER_FORMATS = {
|
|
DEFAULT_LANG: (
|
|
(),
|
|
{
|
|
"email": BLOG_EMAIL,
|
|
"author": BLOG_AUTHOR,
|
|
"date": time.gmtime().tm_year,
|
|
"license": LICENSE
|
|
}
|
|
)
|
|
}
|
|
COMMENT_SYSTEM = ""
|
|
COMMENT_SYSTEM_ID = ""
|
|
FUTURE_IS_NOW = False
|
|
DEPLOY_DRAFTS = False
|
|
SCHEDULE_ALL = True
|
|
SHOW_SOURCELINK = False
|
|
COPY_SOURCES = False
|
|
INDEX_DISPLAY_POST_COUNT = 5
|
|
INDEXES_STATIC = False
|
|
UNSLUGIFY_TITLES = True
|
|
LOGGING_HANDLERS = {
|
|
'stderr': {'loglevel': 'INFO', 'bubble': True},
|
|
'smtp': { 'from_addr': 'www.duckland.org@duckland.org', 'recipients': ('duck@duckland.org'), 'server_addr': ('127.0.0.1',25), 'secure': (), 'level': 'WARNING', 'bubble': False }
|
|
}
|
|
GLOBAL_CONTEXT = {
|
|
'header_color': 'info'
|
|
}
|
|
GLOBAL_CONTEXT_FILLER = []
|
|
CREATE_MONTHLY_ARCHIVE = True
|
|
#ARCHIVE_PATH = "posts"
|
|
#ARCHIVE_FILENAME = "index.html"
|
|
GENERATE_RSS = True
|
|
FEED_TEASERS = False
|
|
FEED_LENGTH = 68
|