Skip to content

Pelican plugin to fetch file modification time

License

Notifications You must be signed in to change notification settings

toni-heittola/pelican-modified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pelican-modified - Fetching file modification time

pelican-modified is an open source Pelican plugin to fetch file modification time for data files used in the Pelican. The plugin provides an automatic way to print modification time of data files used to generate datatables or glossaries (see for example pelican-datatable, pelican-bglossary, and pelican-btex plugins).

Author

Toni Heittola (toni.heittola@gmail.com), GitHub, Home page

Installation instructions

Pelican installation

Make sure the directory where the plugin was installed is set in pelicanconf.py. For example if you installed in plugins/pelican-modified, add:

PLUGIN_PATHS = ['plugins']

Enable pelican-modified:

PLUGINS = ['pelican-modified']

Usage

File modification time is injected to {modified::} tags within the content.

Example:

Date of modification: {modified::content/data/data.yaml}

Parameters

Parameters for the plugin can be set in `pelicanconf.py' with following parameters:

Parameter Type Default Description
MODIFIED_FORMAT String '%Y-%m-%d' Format given to strftime

About

Pelican plugin to fetch file modification time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages