several modifications and refinements

This commit is contained in:
eclipse 2025-02-06 15:32:41 +01:00
parent bc8688f3b2
commit d8a32b235d
2 changed files with 47 additions and 17 deletions

View File

@ -1,15 +1,51 @@
###############################################################################
# Main settings #
###############################################################################
AUTHOR = 'Tobias Radloff' AUTHOR = 'Tobias Radloff'
SITENAME = 'Tobias Radloff' SITENAME = 'Tobias Radloff'
SITESUBTITLE = "Schriftsteller" SITESUBTITLE = "Schriftsteller"
SITETAG = "Schriftsteller" SITETAG = "Schriftsteller"
SITEURL = "tobias-radloff.de" SITEURL = ""
PATH = "content"
ARTICLE_PATHS = ["posts"]
TIMEZONE = 'Europe/Berlin' TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'de' DEFAULT_LANG = 'de'
THEME = "theme/"
###############################################################################
# URL & Path Settings #
###############################################################################
PATH = "content"
ARTICLE_PATHS = ["posts"]
PAGE_PATHS = ["pages"]
#PATH_METADATA = '(?P<path_no_ext>.*)\..*'
#PAGE_SAVE_AS = '{path_no_ext}.html'
ARTICLE_SAVE_AS = '{category}/{slug}.html'
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
DISPLAY_PAGES_ON_MENU = DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = (
("Werke", "/werke/"),
("Neues", "/neues/"),
("Termine", "/termine/"),
("Autor", "/autor/"),
("Kontakt", "/kontakt/")
)
IGNORE_FILES = ['**/.*']
###############################################################################
# Feed & Link Settings #
###############################################################################
# Feed generation is usually not desired when developing # Feed generation is usually not desired when developing
FEED_ALL_ATOM = None FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None CATEGORY_FEED_ATOM = None
@ -31,20 +67,14 @@ SOCIAL = (
("Another social link", "#"), ("Another social link", "#"),
) )
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing ###############################################################################
RELATIVE_URLS = True # Technical Settings #
###############################################################################
JINJA_ENVIRONMENT = { "extensions": ["jinja2.ext.debug"] }
THEME = "theme/"
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (
("Werke", "/werke/"),
("Neues", "/neues/"),
("Termine", "/termine/"),
("Autor", "/autor/"),
("Kontakt", "/kontakt/")
)
############################################################################### ###############################################################################

View File

@ -8,7 +8,7 @@ sys.path.append(os.curdir)
from pelicanconf import * from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https:// # If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = "" SITEURL = "https://tobias-radloff.de"
RELATIVE_URLS = False RELATIVE_URLS = False
FEED_ALL_ATOM = "feeds/all.atom.xml" FEED_ALL_ATOM = "feeds/all.atom.xml"