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
Built Distribution
File details
Details for the file minchin.pelican.plugins.cname-1.0.4.tar.gz
.
File metadata
- Download URL: minchin.pelican.plugins.cname-1.0.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414fc89c58e3896e42ad8af90b8609bb8d6d428c6cfe3fe60731f7c2e19a6bc8 |
|
MD5 | 9406a2ca421ef80271e11714addc26f8 |
|
BLAKE2b-256 | 8e393691f3ca4e5302960ac3389580ee6a9f3e8b5cf72d15b2cfd3421feca69d |
File details
Details for the file minchin.pelican.plugins.cname-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: minchin.pelican.plugins.cname-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc1b0d1a5803654b2498077b3367dd3811c751497e80c9da4e250591d4def32 |
|
MD5 | 9f28710eca99356ffd078e46e255bb66 |
|
BLAKE2b-256 | 2efe249473cf33262d319080a8ba9195fe1e5081b64e8661cb936779a54b10c3 |