skip to navigation
skip to content

Not Logged In

pelican-edit-url 0.1

Add edit URLs to content objects.

Latest Version: 0.1.1

# 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> `

 
File Type Py Version Uploaded on Size
pelican-edit-url-0.1.tar.gz (md5) Source 2014-06-20 1KB
  • Downloads (All Versions):
  • 3 downloads in the last day
  • 30 downloads in the last week
  • 120 downloads in the last month