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:
parent
16b4e652bf
commit
faf958c401
4 changed files with 34 additions and 0 deletions
15
packages/template-datetime/setup.py
Normal file
15
packages/template-datetime/setup.py
Normal 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',
|
||||
]
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue