From 94f71d6f8fc7301dfd470ccf2fee27e078321a78 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 13 Mar 2022 15:21:11 -0400 Subject: Pull changes from mjfer.net This commit adds the changes from the mjfer.net which enable using git as the file last update tracker --- views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views.py') diff --git a/views.py b/views.py index d69ac51..fda6152 100644 --- a/views.py +++ b/views.py @@ -55,7 +55,7 @@ def render_file(path): { 'title': path.split('.')[0].upper(), 'parent_dir': '/' + '/'.join(path.split('/')[:-1]), - 'last_update': file_last_modified(abs_path) + 'last_update': file_last_modified(path), } ) if abs_path.endswith('.html'): @@ -134,6 +134,6 @@ def render_rss_feed(): feed = render_template("feed.xml", **context) response = make_response(feed) response.headers['Content-Type'] = str( - siteconfig.MIMETYPES.get(".xml") + siteconfig.MIMETYPES.get(".xml") ) return response -- cgit v1.2.3