Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pelican-edit-url-0.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file pelican-edit-url-0.1.tar.gz.

File metadata

File hashes

Hashes for pelican-edit-url-0.1.tar.gz
Algorithm Hash digest
SHA256 f0a12c896eda0427b3a931e539b89435fb0086771c4a057568a810fb8f91bd83
MD5 26870378a72d5431debecaf145f222f0
BLAKE2b-256 0956a78309be27beb2441c69e53af87565c8ee16f2df324f66e9b3d6c1f00e48

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