45 lines
1.8 KiB
Python
45 lines
1.8 KiB
Python
"""Configuration file for picopaper blog"""
|
|
|
|
# General site settings
|
|
BLOG_TITLE = "PicoPaper.com"
|
|
BLOG_DESCRIPTION = "we like simple."
|
|
BASE_URL = "https://picopaper.com" # Your site's base URL (no trailing slash)
|
|
AUTHOR_NAME = "PicoPaper"
|
|
AUTHOR_EMAIL = "hello@picopaper.com" # Optional
|
|
THEME = "default"
|
|
|
|
# Exclude specific sections from the main page (they'll still have their own /section/name/ pages)
|
|
EXCLUDE_SECTIONS_FROM_MAIN = ['draft','private'] # e.g., ['python', 'drafts']
|
|
|
|
# Navigation bar items - list of dictionaries with 'text' and 'url' keys.
|
|
# Add a 'children' list to turn an item into a one-level dropdown menu.
|
|
# A dropdown parent is a clickable link if it has a 'url'; omit 'url' to make
|
|
# it a label that only opens the menu.
|
|
NAVBAR_ITEMS = [
|
|
{'text': 'Home', 'url': '/'},
|
|
{'text': 'Sections', 'url': '/section/'},
|
|
{'text': 'Projects', 'url': '/projects/', 'children': [
|
|
{'text': 'All Projects', 'url': '/projects/'},
|
|
{'text': 'Another Project', 'url': '/projects/another-project/'},
|
|
]},
|
|
{'text': 'About', 'url': '/about/'},
|
|
{'text': 'RSS', 'url': '/rss.xml'}
|
|
]
|
|
|
|
# Path settings
|
|
BLOGROLL_PATH = "" # Path for the blog roll, e.g. "" (root) or "articles"
|
|
ROOT_PAGE = "" # Slug of a page item to use as root index, e.g. "home" (leave empty to use blogroll) - example "home" for "items/2026-01-01_page_home.md"
|
|
|
|
# Logo settings
|
|
HIDE_LOGO = False
|
|
HIDE_TITLE = True
|
|
LOGO_PATH = "/images/logo.png"
|
|
|
|
# Image settings
|
|
STRIP_IMAGE_EXIF = True # Remove EXIF/GPS/XMP/text metadata from images/ when building (requires pillow)
|
|
|
|
# Feed settings
|
|
ENABLE_RSS_FEED = True
|
|
RSS_FEED_PATH = "rss.xml" # Path relative to site root (e.g., "rss.xml" or "feed/rss.xml")
|
|
FEED_MAX_ITEMS = 20 # Maximum number of items to include in feeds
|
|
|