Skip to content

pmclanahan/pelican-edit-url

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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>

About

Pelican plugin to add an edit URL to content objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages