Django-based static site generator
Project description
Calico - Django-based Static Site Generator
Calico is a powerful static site generator built on top of Django, combining the flexibility of Django's templating system with the simplicity and performance of static websites.
Features
- Django-powered: Leverage Django's robust templating engine and ecosystem
- Plugin System: Extensible architecture using pluggy (via djp)
- Widget-based Components: Modular, reusable UI components
- Multiple Themes: Built-in PicoCSS theme with support for custom themes
- Blog System: Full-featured blog plugin with categories, tags, and RSS
- Collections: Organize and display grouped content
- Development Server: Live-reload development environment
- Search Support: Built-in search functionality with lunr.js
Installation
pip install calico-ssg
Or install from source:
git clone https://codeberg.org/emmaDelescolle/calico.git
cd calico
pip install -e .
Quick Start
- Initialize a new site:
calico init
- Start the development server:
calico run
- Build your static site:
calico build
Creating Content
Content in Calico is written in Markdown with YAML frontmatter:
---
title: My First Post
date: 2024-01-15
tags: [introduction, calico]
---
# Welcome to My Site
This is my first post using Calico!
Plugin Development
Create custom plugins to extend Calico's functionality:
calico start_plugin my_plugin
Plugins can hook into various aspects of the build process:
- Add template tags and filters
- Register themes and templates
- Include CSS and JavaScript
- Define custom content collections
- Add context processors
Project Structure
my-site/
\x00\x00 content/ # Markdown content files
\x00\x00 static/ # Static assets (images, css, js)
\x00\x00 templates/ # Custom templates
\x00\x00 plugins/ # Local plugins
\x00\x00 config.yml # Site configuration
Documentation
For detailed documentation, visit https://calico-ssg.com/docs/index.html.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests to the Calico repository.
License
Calico is distributed under the MIT License.
Links
- Documentation: https://calico-ssg.com/docs/index.html
- Source Code: https://codeberg.org/emmaDelescolle/calico
- Issue Tracker: https://codeberg.org/emmaDelescolle/calico/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calico_ssg-0.4.2.tar.gz.
File metadata
- Download URL: calico_ssg-0.4.2.tar.gz
- Upload date:
- Size: 59.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fd1d8adb9b18e377f7474a1c2fa7912eac6783ae5d8bb7b523e923b79dc1e82
|
|
| MD5 |
1883dd56936c2575b6ad3b73d523b00e
|
|
| BLAKE2b-256 |
78e846004be0db683aa3aa85f22b1d3103ff6a9db972ffad55bc0b01ba686a7d
|
File details
Details for the file calico_ssg-0.4.2-py3-none-any.whl.
File metadata
- Download URL: calico_ssg-0.4.2-py3-none-any.whl
- Upload date:
- Size: 71.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1265286f6c8866f45f823a20f7b980e0dedfe6ffb1d03f3e635a6919e8b8ca77
|
|
| MD5 |
58bed9061140754c40c41dfc691b0b74
|
|
| BLAKE2b-256 |
02a07a7ff43283431fc581d5f767e897d2a1fa20a049c03a9fe138577889e135
|