This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
executable file
·92 lines (62 loc) · 2.2 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
# -*- coding: utf-8 -*-
#PLUGIN_PATHS = ['/home/yano/dev/pelican-plugins/']
THEME = '/opt/ircpuzzles.org_themes/eevee/'
#THEMEPATH = '/home/yano/dev/pelican-themes'
#THEME = 'eevee'
AUTHOR = u'yano'
SITENAME = u"#ircpuzzles"
SITEURL = 'https://blog.ircpuzzles.org/'
DOMAIN_PLAUSIBLE = 'blog.ircpuzzles.org'
TYPOGRIFY = False
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
AUTHOR_URL = 'author/{slug}/'
AUTHOR_SAVE_AS = 'author/{slug}/index.html'
AUTHORS_URL = 'authors/'
AUTHORS_SAVE_AS = 'authors/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
TAGS_URL = 'tags/'
TAGS_SAVE_AS = 'tags/index.html'
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
GITHUB_URL = 'https://github.com/ircpuzzles/'
# Disabled Disqus comments
#DISQUS_SITENAME = 'ircpuzzles'
COMMENTS_ON_PAGES = False
REVERSE_CATEGORY_ORDER = True
PATH = 'content'
RELATIVE_URLS = False
TIMEZONE = 'UTC'
FEED_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
DEFAULT_LANG = 'en'
STATIC_PATHS = ['images', 'static']
SOCIAL = (
('<i class="fa fa-twitter" aria-hidden="true"></i> Twitter', 'https://twitter.com/ircpuzzles'),
('<i class="fa fa-github" aria-hidden="true"></i> Github', 'https://github.com/ircpuzzles'),
('<i class="fa fa-twitter" aria-hidden="true"></i> Mastodon', 'https://fosstodon.org/@ircpuzzles'),
)
DATE_FORMATS = {
'en': '%Y-%m-%d %H:%M',
}
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
CATEGORIES_URL = 'categories/'
CATEGORIES_SAVE_AS = 'categories/index.html'
DIRECT_TEMPLATES = ['index', 'categories', 'archives', 'search']
PLUGIN_PATHS = ['/opt/ircpuzzles.org_plugins/']
PLUGINS = ['assets', 'extract_toc', 'headerid', 'lightbox', 'neighbors', 'related_posts', 'series', 'tipue_search']
USE_AUTHOR_CARD = False
#THEME_PRIMARY = 'pink'
#THEME_ACCENT = 'pink'
LINKS = (
('Libera.Chat', 'https://libera.chat/'),
)
USE_TWITTER_CARDS = True
TWITTER_USERNAME = 'ircpuzzles'
USE_OPEN_GRAPH = True
#TYPOGRIFY_IGNORE_TAGS = ['pre', 'code', 'meta', 'title']
META_FOOTER = False