Mercurial > hg > Blog
annotate pelicanconf.py @ 101:0e63edd28f55
add a pip requirements file to easily setup the blog venv
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Sat, 28 Mar 2020 02:43:10 +0100 |
parents | e99db3bc53c1 |
children |
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' |
97
e99db3bc53c1
Updates for pelican 4.2.0, publish the blog as HTTPS instead of HTTP
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
75
diff
changeset
|
7 SITEURL = 'https://xanthippe.duckdns.org/blog' |
e99db3bc53c1
Updates for pelican 4.2.0, publish the blog as HTTPS instead of HTTP
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
75
diff
changeset
|
8 # Uncomment following line if you want document-relative URLs when developing |
e99db3bc53c1
Updates for pelican 4.2.0, publish the blog as HTTPS instead of HTTP
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
75
diff
changeset
|
9 RELATIVE_URLS = True |
42
51d2ddc51e40
update the theme with the latest changes from upstream
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
39
diff
changeset
|
10 ARCHIVES_URL = 'archives.html' |
0
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
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_LANG = u'de' |
0
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 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
|
14 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
|
15 TYPOGRIFY = True |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
75
ab417a6e0b05
fix the import path of the plugin
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
72
diff
changeset
|
17 PLUGIN_PATHS = ['../pelican-plugins'] |
72
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
47
diff
changeset
|
18 PLUGINS = ['pelican_comment_system'] |
12
7bfdc2b1d768
generate a captcha per blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
10
diff
changeset
|
19 |
72
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
47
diff
changeset
|
20 # pelican_comment_system plugin config |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
47
diff
changeset
|
21 PELICAN_COMMENT_SYSTEM = True |
10
bd8e75de187a
use the simple_comments plugin instead of juvia now
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
9
diff
changeset
|
22 |
1 | 23 # this theme looks ok but has some downsides: |
24 # - tag list at the bottom only | |
25 # - html validation errors | |
26 #THEME = '../pelican-themes/built-texts' | |
3
a9f7146e01af
fix the theme by specifying some variables
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
1
diff
changeset
|
27 |
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
|
28 THEME = 'themes/tuxlite_tbs' |
0
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 DISPLAY_CATEGORIES_ON_MENU = False |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 # 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
|
32 FEED_ALL_ATOM = None |
0
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 CATEGORY_FEED_ATOM = None |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 TRANSLATION_FEED_ATOM = None |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 # Blogroll |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 LINKS = () #('Pelican', 'http://getpelican.com/'), |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 # ('Python.org', 'http://python.org/'), |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 # ('Jinja2', 'http://jinja.pocoo.org/'), |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 # ('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
|
41 |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 # Social widget |
47 | 43 SOCIAL = ( |
44 ('dirk-olmes', 'https://github.com/dirk-olmes'), | |
45 ) | |
0
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 |
4cd9b65e10e4
initial import of the pelican based blog
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 DEFAULT_PAGINATION = 10 |