-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
110 lines (83 loc) · 2.43 KB
/
pelicanconf.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import datetime
MARKUP = ('md', 'html')
AUTHOR = u'Jordi Burgos'
SITENAME = u'Jordi Burgos'
SITESUBTITLE = 'Programming, technology and random things.'
SITEURL = 'http://localhost:8000'
# Formatting for urls
ARTICLE_URL = "post/{date:%Y}/{slug}.html"
ARTICLE_SAVE_AS = "post/{date:%Y}/{slug}.html"
ARTICLE_LANG_URL = "post/{date:%Y}/{slug}-{lang}.html"
ARTICLE_LANG_SAVE_AS = "post/{date:%Y}/{slug}-{lang}.html"
CATEGORY_URL = "category/{slug}.html"
CATEGORY_SAVE_AS = "category/{slug}.html"
TAG_URL = "tag/{slug}.html"
TAG_SAVE_AS = "tag/{slug}.html"
TIMEZONE = 'Europe/Madrid'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
FEED_RSS = None # 'feeds/all.rss.xml'
# Social widget
SOCIAL = (('twitter', 'http://twitter.com/jordimaister'),
('github', 'http://github.com/jmaister'),
#('facebook', 'http://www.facebook.com/jordiburgos'),
('google-plus', 'https://plus.google.com/105036003303074734569?rel=author')
)
# - Current date
CURRENT_DATE = datetime.now()
TWITTER_USERNAME = '@jordimaister'
EMAIL = 'jordiburgos@gmail.com'
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True
DEFAULT_PAGINATION = 10
##
## MY CONFIG
##
PATH = 'content'
DELETE_OUTPUT_DIRECTORY = True
# directories to be copied into output/static/
STATIC_PATHS = [
'img',
'css',
'js',
'images',
'extra/robots.txt',
'extra/humans.txt',
'extra/google40f5a38880d4cc70',
'extra/favicon.ico',
]
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/humans.txt': {'path': 'humans.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/google40f5a38880d4cc70': {'path': 'google40f5a38880d4cc70.html'},
}
THEME = './jmtheme2'
DEFAULT_DATE_FORMAT = ('%d %b %Y')
#COINHIVE_ID = 'KQCpW8hVz1mn4HUDmsI8FJLaAOjycAlN'
#COINHIVE_OPTIONS = '{throttle: 0.8}'
##
## PLUGINS
##
PLUGIN_PATHS = ['./pelican-plugins']
PLUGINS=['sitemap', 'readtime']
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.9,
'indexes': 0.5,
'pages': 0.3
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly'
}
}
GRAVATAR_IMAGE = 'https://gravatar.com/userimage/52050482/0bba5c8dfa3c8956951c861d8103fe43'