No description
|
|
||
|---|---|---|
| content | Revert "Added vcard" | |
| scripts | First commit | |
| static | Revert "Added vcard" | |
| templates | Revert "Added vcard" | |
| .gitignore | Initial commit | |
| config.toml | Tweaks | |
| LICENSE | Initial commit | |
| README.md | First commit | |
| requirements.txt | First commit | |
JL Blog (Zola)
Minimal, responsive blog powered by Zola. Auto light/dark via prefers-color-scheme.
Commands
- Serve locally:
zola serve - Build for production:
zola build
Update base_url in config.toml before deploying.
Structure
content/_index.md: Homecontent/about.md,content/contact.md: Pagescontent/blog/: Blog section and poststemplates/: Tera templatesstatic/styles.css: Styles
Importing posts (from jluther.net)
Use the helper script to pull posts from the jluther.net Atom feed and save each as a Markdown file under content/blog/ with Zola front matter.
Setup:
# (optional) create & activate a venv
python3 -m venv .venv
source .venv/bin/activate
# install deps
pip install -r requirements.txt
Dry run:
python scripts/import_from_feed.py --dry-run
Import (writes files):
python scripts/import_from_feed.py --dest content/blog --feed https://www.jluther.net/feed.xml
Options:
--overwriteto replace existing.mdfiles with the same slug--destto change the output directory (default:content/blog)--feedto use a different feed URL