-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelicanconf.py
84 lines (74 loc) · 1.95 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import datetime
import os
base_dir = os.path.normpath(os.path.join(
os.path.realpath(__file__),
'..',
))
# Page information
SITEURL = ''
AUTHOR = 'SaltyRTC'
SITENAME = AUTHOR
#SITETITLE = AUTHOR
SITESUBTITLE = 'An end-to-end encrypted signalling protocol'
SITEDESCRIPTION = 'SaltyRTC is an end-to-end encrypted signalling protocol. It offers to freely choose from a range of signalling tasks, such as setting up a WebRTC or ORTC peer-to-peer connection.'
SITEICON = SITEURL + '/static/img/shaker.svg'
# Page settings
THEME = os.path.join(base_dir, 'themes', 'notmyidea')
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
DATE_FORMATS = {
'en': '%a, %d %b %Y',
}
DEFAULT_PAGINATION = 10
RELATIVE_URLS = True
# Static paths & mapping
STATIC_PATHS = ('static',)
EXTRA_PATH_METADATA = {
'static/robots.txt': {'path': 'robots.txt'},
'static/favicon-64.png': {'path': 'favicon.ico'},
}
# Feed generation settings
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Theme specific settings
DISPLAY_CATEGORIES_ON_MENU = False # Switch once first article in News has been created
DISPLAY_PAGES_ON_MENU = True
LINKS_WIDGET_NAME = 'Links'
SOCIAL_WIDGET_NAME = 'Social'
# Additional menu items
MENUITEMS = (
('Home', '/'),
)
SOCIAL = (
('Twitter', 'https://twitter.com/saltyrtc'),
('Github', 'https://github.com/saltyrtc/'),
)
LINKS = (
('Specification', 'https://github.com/saltyrtc/saltyrtc-meta/blob/master/Protocol.md'),
)
# Plugins
PLUGIN_PATHS = (
os.path.join(base_dir, 'plugins',),
)
PLUGINS = ('sitemap',)
# Sitemap settings
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.6,
'indexes': 0.6,
'pages': 0.5,
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly',
}
}