Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

` EDIT_CONTENT_URL = '{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.

Files for pelican-edit-url, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pelican-edit-url-0.1.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page