Skip to main content

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

  1. Initialize a new site:
calico init
  1. Start the development server:
calico run
  1. 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 the Calico repository.

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.

Repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calico_ssg-0.3.1.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calico_ssg-0.3.1-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

Details for the file calico_ssg-0.3.1.tar.gz.

File metadata

  • Download URL: calico_ssg-0.3.1.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for calico_ssg-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f0b8a117f6f35ade16deacc927454b3713e784abd927653434af99762b6c2389
MD5 ffa49e79290886370adfdaa70331f82f
BLAKE2b-256 8f0d19dc6a7b8bd02bd1626a5cfb5f78fb5df19b8920e53545befa1fc6d26a53

See more details on using hashes here.

File details

Details for the file calico_ssg-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: calico_ssg-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 56.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for calico_ssg-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1abd118d180b8fcf437ee860b224d81998040b1b5f59e98299ccdf6ec2afcc72
MD5 1ba8df3befb4ff5f373b6139e43864de
BLAKE2b-256 89bf65086d49efa1e637642174b455efebfbc7698d3530b632678f20240eb577

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page