-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
108 lines (76 loc) · 2.37 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from dotenv import load_dotenv
import os
from markdown import Markdown
markdown = Markdown(extensions=["markdown.extensions.extra"])
def md(content, *args):
return markdown.convert(content)
JINJA_FILTERS = {
"md": md,
}
load_dotenv()
AUTHOR = "Sebastian Proost"
SITENAME = "DeckLock"
SITEURL = ""
PATH = "content"
DECKLOCK_CACHE = "dl_demo_cache"
TIMEZONE = "Europe/Paris"
DEFAULT_LANG = "en"
THEME = "theme"
# 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
# We don't need any of these pages
AUTHORS_SAVE_AS = False
TAGS_SAVE_AS = False
CATEGORIES_SAVE_AS = False
ARCHIVES_SAVE_AS = False
AUTHOR_SAVE_AS = False
TAG_SAVE_AS = False
CATEGORY_SAVE_AS = False
ARTICLE_URL = "posts/{slug}/"
ARTICLE_SAVE_AS = "posts/{slug}/index.html"
PAGE_URL = "pages/{slug}/"
PAGE_SAVE_AS = "pages/{slug}/index.html"
# Add the assets folder to the static data
STATIC_PATHS = ["assets"]
# Configure plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["keyforge", "mtg", "gwent", "fab", "webassets", "jinja_filters"]
# Welcome message, will be shown on the index page. Markdown supported
WELCOME_MESSAGE = """
#### Hi There!
Here you can find an over view of my collection of decks across various trading card games. Click on a game below to
get a list of the decks I own/played!
"""
# KeyForge Section
KEYFORGE_PATH = "data"
KEYFORGE_ASSETS_PATH = "assets/keyforge"
KEYFORGE_DECK_SAVE_AS = "keyforge/{slug}.html"
KEYFORGE_DECKS_SAVE_AS = "keyforge.html"
DOK_API_KEY = os.getenv("DOK_API_KEY", None)
# Magic: The Gathering Section
MTG_PATH = "data"
MTG_ASSETS_PATH = "assets/mtg"
# Gwent Section
GWENT_PATH = "data"
GWENT_ASSETS_PATH = "assets/gwent"
GWENT_CURRENT_VERSION = "8.2.0"
# Flesh and Blood Section
FAB_PATH = "data"
FAB_ASSETS_PATH = "assets/fab"
TEMPLATE_PAGES = {
"gwent_overview.html": "gwent.html",
"mtg_overview.html": "mtg.html",
"fab_overview.html": "fab.html",
}
# When set to true, external links to KeyForge/M:tG/Gwent/FaB card images will be used
# if false images will be downloaded (which could be a copyright violation if you include them)
USE_EXTERNAL_LINKS = False
STATIC_EXCLUDES = []
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True