annotate pelicanconf.py @ 50:20df0a3bcdf1

update the .htaccess file: we do not generate captchas any more but we want to tune the expiring of pages and delivery of compressed content
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 19 Nov 2014 11:46:34 +0100
parents 20b38f558fee
children c2b99e876559
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 #!/usr/bin/env python
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # -*- coding: utf-8 -*- #
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 from __future__ import unicode_literals
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 AUTHOR = u'Dirk Olmes'
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 SITENAME = u'Infoschnipsel und Wissenswertes'
29
7380bf280fc9 switch to duckdns.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 27
diff changeset
7 SITEURL = 'http://xanthippe.duckdns.org/blog'
42
51d2ddc51e40 update the theme with the latest changes from upstream
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 39
diff changeset
8 ARCHIVES_URL = 'archives.html'
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
46
ea8a767f5111 fiddle with L10N: generate the proper <html lang=""> element into the article page,
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 42
diff changeset
10 DEFAULT_LANG = u'de'
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 TIMEZONE = 'Europe/Berlin'
46
ea8a767f5111 fiddle with L10N: generate the proper <html lang=""> element into the article page,
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 42
diff changeset
12 DEFAULT_DATE_FORMAT = u'%d.%m.%Y'
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 TYPOGRIFY = True
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14
39
e6872b8d42e2 do not genereate captchas: the comments script sends comment notification mails now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 36 38
diff changeset
15 PLUGIN_PATHS = ['../simple_comments']
e6872b8d42e2 do not genereate captchas: the comments script sends comment notification mails now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 36 38
diff changeset
16 #PLUGINS = ['simple_comments', 'pelicaptcha']
e6872b8d42e2 do not genereate captchas: the comments script sends comment notification mails now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 36 38
diff changeset
17 PLUGINS = ['simple_comments']
12
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
18
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
19 # simple_comments plugin config
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
20 COMMENT_PATH = 'comments'
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
21
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
22 # pelicaptcha plugin config
7bfdc2b1d768 generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 10
diff changeset
23 PELICAPTCHA_FONT = '/usr/share/tuxpaint/fonts/FreeMono.ttf'
10
bd8e75de187a use the simple_comments plugin instead of juvia now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 9
diff changeset
24
1
3efa31d1bc6e change theme
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 0
diff changeset
25 # this theme looks ok but has some downsides:
3efa31d1bc6e change theme
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 0
diff changeset
26 # - tag list at the bottom only
3efa31d1bc6e change theme
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 0
diff changeset
27 # - html validation errors
3efa31d1bc6e change theme
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 0
diff changeset
28 #THEME = '../pelican-themes/built-texts'
3
a9f7146e01af fix the theme by specifying some variables
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 1
diff changeset
29
9
6e2bcaecf3ec include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 3
diff changeset
30 THEME = 'themes/tuxlite_tbs'
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 DISPLAY_CATEGORIES_ON_MENU = False
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 # Feed generation is usually not desired when developing
3
a9f7146e01af fix the theme by specifying some variables
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 1
diff changeset
34 FEED_ALL_ATOM = None
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 CATEGORY_FEED_ATOM = None
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 TRANSLATION_FEED_ATOM = None
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 # Blogroll
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 LINKS = () #('Pelican', 'http://getpelican.com/'),
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 # ('Python.org', 'http://python.org/'),
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 # ('Jinja2', 'http://jinja.pocoo.org/'),
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 # ('You can modify those links in your config file', '#'),)
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 # Social widget
47
20b38f558fee add a link to github
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 46
diff changeset
45 SOCIAL = (
20b38f558fee add a link to github
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 46
diff changeset
46 ('dirk-olmes', 'https://github.com/dirk-olmes'),
20b38f558fee add a link to github
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 46
diff changeset
47 )
0
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 DEFAULT_PAGINATION = 10
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 # Uncomment following line if you want document-relative URLs when developing
4cd9b65e10e4 initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 RELATIVE_URLS = True