-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
78 lines (68 loc) · 2.02 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from pathlib import Path
import sys
sys.path.insert(0, str(Path.cwd()))
from contentblocks import *
sys.path.pop(0)
PATH = 'content'
AUTHOR = 'Blind Pandas Team'
SITEURL = 'https://blindpandas.com'
SITENAME = 'Blind Pandas'
SITESUBTITLE = "Upholding accessibility in words and action"
TIMEZONE = 'Africa/Khartoum'
DEFAULT_LANG = 'en'
DEFAULT_CATEGORY = 'Uncategorised'
RELATIVE_URLS = True
DEVELOPMENT = True
LOAD_CONTENT_CACHE = False
DIRECT_TEMPLATES = ['index',]
# Re-map URLs
ARTICLE_URL = 'blog/{slug}/'
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
ARTICLE_LANG_URL = 'blog/{slug}-{lang}'
ARTICLE_LANG_SAVE_AS = 'blog/{slug}-{lang}/index.html'
AUTHOR_URL = 'blog/author/{slug}.html'
AUTHOR_SAVE_AS = 'blog/author/{slug}.html'
CATEGORY_URL = 'blog/category/{slug}.html'
CATEGORY_SAVE_AS = 'blog/category/{slug}.html'
TAG_URL = 'blog/tag/{slug}.html'
TAG_SAVE_AS = 'blog/tag/{slug}.html'
AUTHORS_SAVE_AS = 'blog/authors.html'
CATEGORIES_SAVE_AS = 'blog/categories.html'
TAGS_SAVE_AS = 'blog/tags.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
PAGE_LANG_URL = '{slug}-{lang}'
PAGE_LANG_SAVE_AS = '{slug}-{lang}/index.html'
# We don't need to generate the following
DRAFT_SAVE_AS = ''
DRAFT_LANG_SAVE_AS = ''
DRAFT_PAGE_SAVE_AS = ''
DRAFT_PAGE_LANG_SAVE_AS = ''
# 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
# Custom theme
THEME = Path.cwd() / "theme"
THEME_STATIC_DIR = 'theme'
# Static files
STATIC_PATHS = ['static', 'extra/CNAME']
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
'static/*': {'path': 'static/'},
'static/images/favicon.ico': {'path': 'favicon.ico'},
}
# Plugins
PLUGIN_PATHS = ('plugins',)
PLUGINS = ('seo', 'htmlcompress', 'readtime',)
# SEO
SEO_REPORT = True # To enable this feature
SEO_ENHANCER = True
IMAGE_PATH = 'static/images'
# OG properties
OG_LOCALE = "en_US"
HEADER_COVER = "static/images/logo512x512.png"