sito-hackit-20/pelicanconf.py

82 lines
2.2 KiB
Python
Raw Normal View History

2020-01-15 17:10:28 +01:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
2020-07-18 14:51:34 +02:00
# da un anno all'altro cambiare solo la variabile YEAR è sufficiente per le operazioni più base!
YEAR = 2020
EDITION = hex(YEAR - 1997)
2020-01-15 17:10:28 +01:00
AUTHOR = "Hackmeeting"
2020-07-18 14:51:34 +02:00
SITENAME = "Hackmeeting %s" % EDITION
2020-01-15 17:10:28 +01:00
CC_LICENSE = "by-nc-sa"
2020-07-18 14:51:34 +02:00
SITEURL = "/hackit%d" % (YEAR - 2000)
2020-01-15 17:10:28 +01:00
PATH = "content"
PAGE_PATHS = ["pages"]
ARTICLE_PATHS = ["news"]
STATIC_PATHS = ["images", "talks", "extra"]
# DIRECT_TEMPLATES = ('search',) # tipue search
TIMEZONE = "Europe/Paris"
DEFAULT_LANG = "it"
# Feed generation is usually not desired when developing
2020-07-14 21:19:48 +02:00
INDEX_SAVE_AS = "news.html"
ARTICLE_URL = "news/{slug}.html"
ARTICLE_SAVE_AS = "news/{slug}.html"
2020-07-14 21:26:50 +02:00
FEED_DOMAIN = "https://it.hackmeeting.org"
2020-07-14 21:19:48 +02:00
FEED_ALL_ATOM = "news.xml"
2020-01-15 17:10:28 +01:00
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = None
# Social widget
SOCIAL = None
DEFAULT_PAGINATION = 10
USE_OPEN_GRAPH = False # COL CAZZO
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
2020-07-18 14:51:34 +02:00
DEFAULT_DATE = (YEAR, 3, 1)
2020-01-15 17:10:28 +01:00
TYPOGRIFY = True
PAGE_ORDER_BY = "navbar_sort"
PAGE_URL = "{slug}.html"
PAGE_SAVE_AS = "{slug}.html"
PAGE_LANG_URL = "{slug}.{lang}.html"
PAGE_LANG_SAVE_AS = "{slug}.{lang}.html"
BANNER = True
BANNER_ALL_PAGES = True
SITELOGO = "logo/logo.png"
# PAGE_BACKGROUND = 'images/background.jpg'
# THEME = 'themes/hackit0x15/'
2020-07-28 01:53:20 +02:00
THEME = "themes/maya0x17/"
2020-01-15 17:10:28 +01:00
FAVICON = "images/cyberrights.png"
FONT_URL = "theme/css/anaheim.css"
# Custom css by sticazzi.
# CUSTOM_CSS = 'theme/css/hackit.css'
EXTRA_PATH_METADATA = {
# 'extra/main.css': {'path': 'themes/pelican-bootstrap3/static/css/main.css' },
"extra/favicon.png": {"path": "images/favicon.png"},
"images/locandina.jpg": {"path": "images/locandina.jpg"},
}
# Pelican bootstrap 3 theme settings
BOOTSTRAP_THEME = "darkly"
HIDE_SITENAME = True
HIDE_SIDEBAR = True
PLUGIN_PATHS = ["plugins"]
2020-08-05 03:17:39 +02:00
PLUGINS = ["langmenu", "talks", "tipue_search", "pelican_webassets"]
2020-01-15 17:10:28 +01:00
# plugin/talks.py
SCHEDULEURL = "https://hackmeeting.org" + SITEURL + "/schedule.html"
TALKS_GRID_STEP = 30
MARKDOWN = {"extension_configs": {"markdown.extensions.toc": {}}}