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.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for minchin.pelican.plugins.cname-1.0.3.tar.gz
Algorithm Hash digest
SHA256 bf9ca1e39c53daec35288da1d5c1fa658b15030966168ec27056a239ba26b802
MD5 96dafaf9c42b89d474d5b54db2613702
BLAKE2b-256 dbaf4f19b4ecea5fe73070ed9ee15b3d7cce0f81df801360a64cd02f2e026ea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for minchin.pelican.plugins.cname-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20eb433f68f93f231c3077969fd431564930bd517884d33205e316c2730188b2
MD5 81ac8f26d7aba9eb908b0ed33acb9051
BLAKE2b-256 99d185ca208cde6971b0449c03647d0438d9b55c2c04d72ee3be8067375918c1

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