diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:14:36 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:14:36 -0600 |
commit | 903211371ec1ea6354f3aff0ccb09baf3ed6d33a (patch) | |
tree | 9658cd4f9b15ef8852add3bb818fedd2d9e6516d /src/pyssg/plt/index.html | |
parent | 6ec12d94c1b25883e3588afcadd686d3dc157675 (diff) |
remove unnecessary variables for page objectv0.8.2
removed some of the unnecessary variables for dates on the page object, as well as from the mandatory config
Diffstat (limited to 'src/pyssg/plt/index.html')
-rw-r--r-- | src/pyssg/plt/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pyssg/plt/index.html b/src/pyssg/plt/index.html index 96d66ef..c33fd37 100644 --- a/src/pyssg/plt/index.html +++ b/src/pyssg/plt/index.html @@ -19,13 +19,13 @@ <ul> {%for p in all_pages%} {%if loop.previtem%} - {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%} - <h3>{{p.cdate_list_sep}}</h3> + {%if loop.previtem.cdatetime.strftime(config['fmt']['list_sep_date']) != p.cdatetime.strftime(config['fmt']['list_sep_date'])%} + <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3> {%endif%} {%else%} - <h3>{{p.cdate_list_sep}}</h3> + <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3> {%endif%} - <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> + <li>{{p.cdatetime.strftime(config['fmt']['list_date'])}} - <a href="{{p.url}}">{{p.title}}</a></li> {%endfor%} </ul> </body> |