/
pelicanconf.py
executable file
·95 lines (69 loc) · 2.4 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
def sidebar(value):
if value.startswith('archives') or value.startswith('category'):
return 'right-sidebar'
elif value == 'index':
return 'index'
else:
return 'no-sidebar'
JINJA_FILTERS = {'sidebar': sidebar}
AUTHOR = u'Winston Smith'
SITENAME = u'Progetto Winston Smith'
SITESUBTITLE = u''
SITEURL = u'https://pws.winstonsmith.org'
HEADINGS = (
('Progetto Winston Smith', '/'),
)
ORGANIZERS = (
('Progetto Winston Smith', 'http://pws.winstonsmith.org'),
)
PATH = 'content'
TIMEZONE = 'Europe/Rome'
DEFAULT_LANG = u'it'
USE_FOLDER_AS_CATEGORY = True
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('Facebook', 'https://www.facebook.com/progetto.winston.smith'),
('Twitter', 'https://twitter.com/projectwinnie'),)
DEFAULT_PAGINATION = 10
YEAR = 2018
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
SIDEBAR = ()
THEME = "themes/twenty"
STATIC_PATHS = ['css', 'js', 'images']
MENUITEMS = (
('E-Privacy', 'https://e-privacy.winstonsmith.org/'),
('Sostieni!', "http://paypal.me/eprivacy"),
)
DISPLAY_PAGES_ON_MENU = False
SUBMENUS = (
('Cosa facciamo', "/pages/manifesto-pws.html", (
('Convegno e-privacy', 'https://e-privacy.winstonsmith.org'),
('Big Brother & CoViD-1984 t-shirts', 'https://worthwearing.org/store/progetto-winston-smith'),
('La guida al Voto Digitale', 'https://blog.crvd.org/la-guida-hermes-al-voto-digitale/'),
#('Big brother award', 'https://bba.winstonsmith.org')
)),
('Chi siamo', "/pages/io-sono-winston-smith.html", (
('...io sono Winston Smith', '/pages/io-sono-winston-smith.html'),
('Il Manifesto', '/pages/manifesto-pws.html'),
('collabora', '/pages/collabora.html'),
('supporta', "/pages/dona.html"),
# ('sala stampa', '/pages/stampa.html'),
)),
)
BANNERFIRST = u"""<p>Progetto<p/>
<p/><strong>Winston Smith</strong><br /></p>
"""