Added a custom package to inject datetime in templates

Modified blog pagination filter to show only posts which pubdate is
less or equal than today's date.
This commit is contained in:
Felipe M 2016-12-20 10:08:40 +01:00
parent 16b4e652bf
commit faf958c401
4 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,15 @@
from setuptools import setup
setup(
name='lektor-template-datetime',
version='0.1',
author=u'Felipe Martin',
author_email='me@fmartingr.com',
license='MIT',
py_modules=['lektor_template_datetime'],
entry_points={
'lektor.plugins': [
'template-datetime = lektor_template_datetime:TemplateDatetimePlugin',
]
}
)