Skip to main content

Minchin dot CA is a theme for Pelican, a static site generator written in Python.

The Minchin dot CA theme is based on Bootstrap 3, and was first used at Minchin.ca.

Installation

The easiest way to install the Minchin dot CA theme is through the use of pip. This will also install the required dependencies automatically.

pip install minchin.pelican.themes.minchindotca

Then, in your pelicanconf.py file, import the modele, use the built in function to specify your theme location, set the default colour scheme, set the image processing patterns used, and add some Jinja filters that the theme uses:

from minchin.pelican.themes import minchindotca

THEME = minchindotca.get_path()
BOOTSTRAP_THEME = 'minchindotca'

IMAGE_PROCESS = {
  'article-feature': ["scale_in 848 848 True"],
  'index-feature': ["scale_in 263 263 True"],
}

# Jijna2 filters
def datetimefilter(value, format='%Y/%m/%d %H:%M'):
    """convert a datetime to a different format."""
    return value.strftime(format)


def article_date(value):
    """Converts a date to the format we want it displayed on the article
       template.
    """
    return value.strftime('%A, %B %-d, %Y')


def breaking_spaces(value):
    """Converts non-breaking spaces to regular spaces."""
    return value.replace('\u00A0', ' ')


JINJA_FILTERS = {
  'datetimefilter': datetimefilter,
  'article_date':   article_date,
  'breaking_spaces': breaking_spaces,
}

You will may also need to configure the theme through the use of additional settings (see below).

Requirements

Minchin dot ca requires Pelican and the image_process plugin. This can be manually installed with pip:

pip install pelican minchin.pelican.plugins.image_process

Additional Settings

Details coming. In the meantime, refer to the settings on the Bootstrap 3 theme.

Credits

Original theme developed by Daan Debie.

The idea that a theme could be installed as a Python package by Jeff Forcier’s Alabaster theme for Sphinx.

Metadata

Release files for minchin.pelican.themes.minchindotca 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minchin.pelican.themes.minchindotca 1.1.0
File Size Uploaded
minchin.pelican.themes.minchindotca-1.1.0.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for minchin.pelican.themes.minchindotca 1.1.0
File Interpreter ABI Platform
minchin.pelican.themes.minchindotca-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / minchin.pelican.themes.minchindotca-1.1.0.tar.gz

Download URL minchin.pelican.themes.minchindotca-1.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
76c7019d933a3e2878542ba5938f64ddbd1057eb49081fe08b6a6ad99f50684b
BLAKE2b-256 checksum
How to use checksums
c6a1132a35b87791e6a215784240c34e3b80fa82995cd182b4fdc0a61729628d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / minchin.pelican.themes.minchindotca-1.1.0-py3-none-any.whl

Download URL minchin.pelican.themes.minchindotca-1.1.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e409ed5f7dc30cc888bf4f0951235932c3a3bd5466c9f441e6bb1a6b60d25fb0
BLAKE2b-256 checksum
How to use checksums
b6f904d14642cf2bd87b0635e2dbdeaf5ebc2548e84bac44ace351ea9525f5e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page