-
Notifications
You must be signed in to change notification settings - Fork 0
/
publishconf.py
78 lines (57 loc) · 1.95 KB
/
publishconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
AUTHOR = u'Andrew Aitken'
SITENAME = u'Andrew Aitken'
SITESUBTITLE = u'Blog'
SITEURL = 'http://www.andrewaitken.com'
THEME = 'themes/coffee-code'
RELATIVE_URLS = False
STATIC_PATHS = ['images', 'static', ]
EXTRA_PATH_METADATA = {
'static/CNAME': {'path': 'CNAME'},
'static/favicon.ico': {'path': 'favicon.ico'},
'static/robots.txt': {'path': 'robots.txt'},
'pages/404.md': {'path': '404.html'},
}
TIMEZONE = 'Europe/London'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_RSS = 'feeds/all.rss.xml'
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = True
# Nice Urls
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
PAGE_URL = '{slug}.html}'
PAGE_SAVE_AS = '{slug}.html'
AUTHOR_URL = 'author/{slug}/'
AUTHOR_SAVE_AS = 'author/{slug}/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
SITE_DESCRIPTION = "I am Andrew Aitken, a .net developer living in Glasgow."
# Blogroll
LINKS = (('Cameron Fletcher', 'http://cameronfletcher.com/'),
('Dougal Matthews', 'http://www.dougalmatthews.com/'),
('Steven Gibson', 'https://twitter.com/sgxbsxn'))
# Social widget
SOCIAL = (('Twitter', 'https://twitter.com/AndyA13'),
('github', 'https://github.com/AndyA13'))
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
GOOGLE_ANALYTICS = "UA-5045761-4"