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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 486bea670328a065a74413275de0cf38b434466d5fc7f70bf1a722ff9e73bd6e
MD5 7812bba11ae82fbfc496446e532fbec1
BLAKE2b-256 9af23552f1f445adfc04f4503397529386c883b29dc8b112c464064cbd6b3922

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 182200e17b2f1f2cb0e932bcf8688b452b35b38ac76fe7f98c02b66dcb792892
MD5 2b48901674eddb5bf989bb72faff07f8
BLAKE2b-256 c3c25ba0950ea8f0638db0b2190be05f47c3b3a1c3e5c3f62d97c5026f9f9f5f

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