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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 04dda07208e764813df704fda65b4b52967178cfbb98a24f7af6564bf7d67a1f
MD5 58914af500a87a03c8bbb5aeffe1ffe3
BLAKE2b-256 f5849bfd6e4c7755cb1db2820ea2627e639105f19404aa3bc83d53ba32c248c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.cname-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d994709bd1db2fbd73510b6dfe66102ca527d28f7619d117101fad65da97a7
MD5 136ea68d985435b313f557726b2d2b87
BLAKE2b-256 8506617b1ecd17632307e5deee9f28086509b579f78a4d1e9fe08e7206af496e

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