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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for minchin.pelican.plugins.cname-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3c3dc5dcbc5689ef345b7da733f9b04545105c5b60f9aede7c6b1a873e53c82
MD5 03bb77dacab9fac8346d4cbc7057f5ed
BLAKE2b-256 09ccfac2b9b2b48e640ed0f13b91657318ee495dbaef4409473aedc19bb73261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for minchin.pelican.plugins.cname-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 446165ed354696804d0be6a35c64f8d4969c49bd0569a170a023a0bc597677c6
MD5 95b13c27e179b15431c9f13e28d0ed6a
BLAKE2b-256 cfa521a16bd846233e6ce7133f184d31a46577b62200e471a9198f4e5102d273

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