a base Pelican Plugin template.
Project description
These are the bare minimum yet possibly over-explained steps for creating a Pelican plugin.
Steps
Please let us know in an issue if we forgot anything!
Copy Plugin Base
Fork thedropin.
Change all dir names and references to this project’s name[1]_.
Dependencies
See instructions for installing Pipenv. Then run pipenv install --dev.
Developing Your Plugin
This is now where you get to get 🎨 creative! Good luck, have fun.
ETC
This is wading into dangerous territory to start recommending text-editor practices, but if you open your editor from inside the Pipenv shell, that may help your editor loading the proper environment-specific dependencies.
Tests
pipenv run tests
Linting
pipenv run lints
Installation
The installation instructions for your new plugin will now be the following.
pipenv install --dev thedropin
update your pelicanconf.py’s plugins settings to include the following.
import thedropin PLUGINS = [thedropin]
You can now include {{ article.emoji }} or {{ page.emoji }} in your templates. This can be overridden in the article, or page’s, metadata. For example, :emoji: 🧙.
References
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file thedropin-1.0.1.tar.gz
.
File metadata
- Download URL: thedropin-1.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8efd552025156c59307bbe2e975d0a0aa6c3c08e7c14e2c9274c381d03e96c |
|
MD5 | e7c3fc4236b976381ecb3663dd86043c |
|
BLAKE2b-256 | 851c97626384d56650d27da71dccd2a126c4a753b578021cc685c6edd9f81f16 |