mirror of
https://github.com/rechelon/zine_library.git
synced 2026-02-13 22:29:58 +00:00
2.5 KiB
Executable file
2.5 KiB
Executable file
Configuration
Basic Settings
SITENAME = 'Your Blog Name'
SITESUBTITLE = 'A brief description of your blog'
SITEURL = 'https://yourblog.com'
# Logo (optional) - place in content/images/
SITELOGO = 'images/logo.png' # Recommended: 200x200px
# Menu items
MENUITEMS = [
('Home', '/'),
('Archives', '/archives.html'),
]
# Display pages in menu
DISPLAY_PAGES_ON_MENU = True
# Social links (displayed in right sidebar)
SOCIAL = [
('Twitter', 'https://twitter.com/yourusername'),
('GitHub', 'https://github.com/yourusername'),
]
# External links (displayed in right sidebar)
LINKS = [
('Pelican', 'https://getpelican.com/'),
('Python.org', 'https://python.org/'),
]
# Tag cloud (displayed in right sidebar)
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 20
Layout Customization
The theme uses CSS variables for easy customization. You can override these in a custom CSS file:
:root {
--color-ink: #1a1a1a; /* Main text color */
--color-paper: #fefdf8; /* Background color */
--color-accent: #c84630; /* Accent/link color */
--color-muted: #6b6b6b; /* Secondary text */
--color-border: #d4d4d4; /* Borders */
--sidebar-width: 280px; /* Sidebar width on desktop */
--header-height: 200px; /* Header height */
--max-width: 1400px; /* Maximum content width */
}
Template Structure
base.html- Base template with header, footer, and three-column layoutindex.html- Homepage with article cards and paginationarticle.html- Individual blog post templatepage.html- Static page templatecategory.html- Category archive templatetag.html- Tag archive templateauthor.html- Author archive template
Sidebar Content
Left Sidebar
- About section (uses SITESUBTITLE)
- Categories list
Right Sidebar
- Tag cloud
- Social links (from SOCIAL setting)
- External links (from LINKS setting)
Responsive Breakpoints
- Desktop (>992px): Three-column layout with sticky sidebars
- Tablet (768px-992px): Single column, sidebars stack below content
- Mobile (<768px): Simplified single-column layout
- Small Mobile (<480px): Further optimizations for small screens
Customization Tips
- Custom Logo: Add a 200x200px logo for best results
- Color Scheme: Modify CSS variables to match your brand
- Fonts: The theme uses Google Fonts (Playfair Display + Source Sans 3). You can replace these in the CSS.
- Layout Width: Adjust
--max-widthand--sidebar-widthvariables