flex/docs/pelicanconf.py

86 lines
1.8 KiB
Python
Raw Normal View History

2018-01-13 04:31:08 +01:00
from datetime import datetime
2020-09-19 22:04:09 +02:00
AUTHOR = "Alexandre Vicenzi"
SITEURL = "http://localhost:8000"
SITENAME = "Flex"
SITETITLE = "Flex"
SITESUBTITLE = "The minimalist Pelican theme"
SITEDESCRIPTION = "Flex - The minimalist Pelican theme."
2018-01-13 04:43:11 +01:00
# SITELOGO = ''
2018-01-13 04:31:08 +01:00
# FAVICON = '/images/favicon.ico'
2020-09-19 22:04:09 +02:00
BROWSER_COLOR = "#333333"
PYGMENTS_STYLE = "monokai"
2018-01-13 04:31:08 +01:00
2020-09-19 22:04:09 +02:00
ROBOTS = "index, follow"
2018-01-13 04:31:08 +01:00
2020-09-19 22:04:09 +02:00
THEME = "../"
PATH = "content"
OUTPUT_PATH = "blog/"
TIMEZONE = "America/New_York"
2018-01-13 04:31:08 +01:00
2021-02-04 22:43:39 +01:00
DISABLE_URL_HASH = True
2020-09-19 21:45:37 +02:00
# PLUGIN_PATHS = ['pelican-plugins']
2020-09-19 19:40:16 +02:00
# PLUGINS = ['i18n_subsites']
# JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
2020-09-19 22:04:09 +02:00
I18N_TEMPLATES_LANG = "en"
DEFAULT_LANG = "en"
OG_LOCALE = "en_US"
LOCALE = "en_US"
2018-01-13 04:31:08 +01:00
DATE_FORMATS = {
2020-09-19 22:04:09 +02:00
"en": "%B %d, %Y",
2018-01-13 04:31:08 +01:00
}
2020-09-19 22:04:09 +02:00
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"
2018-01-13 04:31:08 +01:00
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
USE_FOLDER_AS_CATEGORY = False
MAIN_MENU = True
HOME_HIDE_TAGS = True
2022-07-08 20:36:43 +02:00
GITHUB_CORNER_URL = "https://github.com/alexandrevicenzi/Flex"
2018-01-13 04:31:08 +01:00
SOCIAL = (
2020-09-19 22:04:09 +02:00
("github", "https://github.com/alexandrevicenzi/Flex"),
("rss", "/blog/feeds/all.atom.xml"),
2018-01-13 04:31:08 +01:00
)
2020-09-19 22:04:09 +02:00
MENUITEMS = (
("Archives", "/archives.html"),
("Categories", "/categories.html"),
("Tags", "/tags.html"),
)
2018-01-13 04:31:08 +01:00
CC_LICENSE = {
2021-02-04 22:33:17 +01:00
"name": "Creative Commons Attribution-ShareAlike 4.0 International License",
2020-09-19 22:04:09 +02:00
"version": "4.0",
"slug": "by-sa",
2021-02-04 22:06:02 +01:00
"icon": True,
2021-02-04 22:33:17 +01:00
"language": "en_US",
2018-01-13 04:31:08 +01:00
}
COPYRIGHT_YEAR = datetime.now().year
DEFAULT_PAGINATION = 10
DISQUS_SITENAME = "flex-pelican"
2020-09-19 22:04:09 +02:00
ADD_THIS_ID = "ra-55adbb025d4f7e55"
2018-01-13 04:31:08 +01:00
2020-09-19 22:04:09 +02:00
STATIC_PATHS = ["images", "extra/ads.txt", "extra/CNAME"]
2020-09-19 21:45:37 +02:00
EXTRA_PATH_METADATA = {
2020-09-19 22:04:09 +02:00
"extra/ads.txt": {"path": "ads.txt"},
"extra/CNAME": {"path": "CNAME"},
2020-09-19 21:45:37 +02:00
}
2018-01-13 04:31:08 +01:00
2020-04-20 23:38:29 +02:00
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
THEME_COLOR_ENABLE_USER_OVERRIDE = True
2018-01-13 04:31:08 +01:00
USE_LESS = True