many many many Varia's websites, work in progress: https://many.vvvvvvaria.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mb@mb 04c2824180 adding the 2 submodules again 7 years ago
..
README.md adding the 2 submodules again 7 years ago
__init__.py adding the 2 submodules again 7 years ago
always_modified.py adding the 2 submodules again 7 years ago

README.md

Always Modified

Say you want to sort by modified date/time in a theme template, but not all your articles have modified date/timestamps explicitly defined in article metadata. This plugin facilitates that sorting by assuming the modified date (if undefined) is equal to the created date.

Usage

  1. Add ALWAYS_MODIFIED = True to your settings file.

  2. Now you can sort by modified date in your templates:

    {% for article in articles|sort(reverse=True,attribute='modified') %}