Add edit URLs to content objects.
Project description
# pelican-edit-url
Pelican plugin to add an edit URL to content objects.
This plugin assumes that the parent directory of your content directory is your project directory. If you have the code for your site somewhere public (e.g. Github), you can provide links to the source for each piece of content.
## Installation
` pip install pelican-edit-url `
Add the setting to your pelicanconf.py
` EDIT_CONTENT_URL = 'https://github.com/ME/MYCOOLSITE.com/blob/master/{file_path}' `
Put {file_path} wherever the path to the file should go in the url. Once this is done you will have an edit_url property on your page and article objects.
` <a href="{{ article.edit_url }}">edit on github</a> `
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 pelican-edit-url-0.1.1.tar.gz
.
File metadata
- Download URL: pelican-edit-url-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a689e9612c44333a458ad8df4083bd41574bfd2821d79dfb43961c06b7caac9 |
|
MD5 | c432f5ceb70cb361feab07713a9cfa42 |
|
BLAKE2b-256 | 6e060886ee18f89ecea5d77df6989e579592dec73441f95f691b1d5dda926057 |