Skip to main content

Pelican plugin that adds a `CNAME` file to the output root. Useful for publishing to Github Pages. Written in Python.

Project description

CName is a plugin for Pelican, a static site generator written in Python.

CName creates a CNAME file in the root of your output directory. This is useful when you are publishing your site to GitHub Pages on a custom domain.

Installation

The easiest way to install CName is through the use of pip. This will also install the required dependencies automatically.

pip install minchin.pelican.plugins.cname

Then, in your pelicanconf.py file, add CName to your list of plugins:

PLUGINS = [
            # ...
            'minchin.pelican.plugins.cname',
            # ...
          ]

And that’s it! No further configuration is needed.

Usage

No configuration is needed. The value places in the CNAME files is based on your SITEURL setting.

Credits

Based on the original code by Dmitriy Kalinin.

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

minchin.pelican.plugins.cname-1.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file minchin.pelican.plugins.cname-1.0.2.tar.gz.

File metadata

File hashes

Hashes for minchin.pelican.plugins.cname-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ca64be21c8f23f0503598a13877a4848ee25deb31d701512122122f879061acc
MD5 d609aec5ec6751a639990befaa5ab8a6
BLAKE2b-256 f16189955aa2af7f55bdacb1794dcaf8f29a21f838423de18f9ce234d55895f7

See more details on using hashes here.

File details

Details for the file minchin.pelican.plugins.cname-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for minchin.pelican.plugins.cname-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 361290a1a315df333a365885b106513cae852e8d12c5e358786c0366f1040266
MD5 5eb77514f658e8541e1b365a2947c8b8
BLAKE2b-256 71a7fe01fbeed1466d245890ea2d77b249a17f0eeceea53cc37e2503871e02d3

See more details on using hashes here.

Supported by

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