forked from spapas/spapas.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
82 lines (69 loc) · 2.03 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Fix for ipynb plugin https://github.com/danielfrg/pelican-ipynb/issues/49
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
AUTHOR = u'Serafeim Papastefanos'
SITENAME = u'/var/'
SITESUBTITLE =u'Various programming stuff'
SITEURL = 'https://spapas.github.io'
TIMEZONE = 'Europe/Athens'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_RSS = None
CATEGORY_FEED_RSS = None
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
# Blogroll
#LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('reStructuredText', 'http://docutils.sourceforge.net/rst.html'),
#)
#MENUITEMS = LINKS
# Social widget
#SOCIAL = (
#('You can add links in your config file', '#'),
#('Stackoverflow profile', 'http://stackoverflow.com/users/119071/serafeim'),
#)
DEFAULT_PAGINATION = 5
STATIC_PATHS = ['images', ]
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
TYPOGRIFY = True
THEME = "../pelican-octopress-theme"
TWITTER_USERNAME='_serafeim_'
TWITTER_TWEET_BUTTON=True
#GOOGLE_ANALYTICS='UA-44750952-1'
GOOGLE_UNIVERSAL_ANALYTICS='UA-44750952-1'
PLUGIN_PATHS = ['../pelican-plugins']
PLUGINS = [
'sitemap',
'pelican_jsfiddle',
'ipynb.markup',
]
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'weekly',
'pages': 'monthly'
}
}
MARKUP = ('rst', 'md', 'ipynb', )
#MARKUP = ('rst', 'md', )
IGNORE_FILES = ['.ipynb_checkpoints']
GITHUB_USER = 'spapas'
GITHUB_SHOW_USER_LINK = True
GITHUB_SKIP_FORK = True
YEAR_ARCHIVE_SAVE_AS = u'posts/{date:%Y}/index.html'
#MONTH_ARCHIVE_SAVE_AS = u'posts/{date:%Y}/{date:%M}/index.html'