-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpelicanconf.py
113 lines (94 loc) · 3.21 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'NeuroFedora'
SITENAME = 'NeuroFedora: Blog'
DESCRIPTION = "Free Software for Free Neuroscience"
SITESUBTITLE = "Free Software for Free Neuroscience"
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/London'
DEFAULT_LANG = 'en'
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['tag_cloud', 'share_post']
# Theme
THEME = "theme-alchemy/alchemy"
SITEIMAGE = "/NeuroFedoraLogo01-title.png"
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
# Blogroll
LINKS = (('Posts', '/blog_index.html'),
('Docs', 'https://neuro.fedoraproject.org'),
)
# Social widget
ICONS = (
('fas fa-download', 'https://labs.fedoraproject.org/en/comp-neuro/',
"Download CompNeuro!"),
('fab fa-fedora', 'https://getfedora.org',
"Get Fedora!"),
('fas fa-mail-bulk',
'https://lists.fedoraproject.org/admin/lists/[email protected]/',
'The NeuroFedora Mailing list'),
('fas fa-comments', 'https://matrix.to/#/#neuro:fedoraproject.org',
"Chat on Element/Matrix"),
('fas fa-comment', 'https://web.libera.chat/?channels=#fedora-neuro',
"Chat on IRC"),
('fab fa-telegram', 'https://t.me/NeuroFedora',
"Chat on Telegram"),
('fab fa-mastodon',
'https://fosstodon.org/tags/neurofedora',
'NeuroFedora on Mastodon'),
('fab fa-twitter',
'https://twitter.com/neurofedora',
'NeuroFedora on Twitter'),
('fas fa-brain',
'https://neuroblog.fedoraproject.org/planet-neuroscience/',
'Journal RSS feeds'),
('fas fa-newspaper',
'https://neuroblog.fedoraproject.org/planet-neuroscientists/',
'Neuroscience news'),
('fab fa-linkedin', 'https://www.linkedin.com/groups/8912503/',
"NeuroFedora on LinkedIn"),
('fas fa-code-branch', 'https://pagure.io/neuro-sig/NeuroFedora',
"NeuroFedora on pagure.io"),
('fab fa-github', 'https://github.com/neurofedora',
"NeuroFedora on Github"),
('fas fa-bug',
'https://tinyurl.com/neurofedora-bugs',
"NeuroFedora on Bugzilla"),
('fas fa-rss', '/feeds/all.atom.xml',
"Subscribe to RSS feeds"),
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# Static index page
INDEX_SAVE_AS = 'blog_index.html'
# Slugs for tags and so on
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
# Settings for article paths
ARTICLE_PATHS = ['']
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARCHIVES_SAVE_AS = 'archives.html'
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/index.html'
TAG_CLOUD_STEPS = 6
TAG_CLOUD_MAX_ITEMS = 30
TAG_CLOUD_SORTING = 'random'
DELETE_OUTPUT_DIRECTORY = True
# Favicon etc.
STATIC_PATHS = [
'images',
'extra',
]
EXTRA_PATH_METADATA = {
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/NeuroFedoraLogo01-title.png': {'path': 'NeuroFedoraLogo01-title.png'}
}