From ec6feec81ebab89dc6779027649b1ce517042d22 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Mon, 1 Nov 2021 23:56:07 -0400 Subject: Optimize mobile CSS. Add last update time default This commit optimizes the mobile and web css to be responsive on zoom (in supported browsers) and responsive on mobile screens. This is a minimal optimization and lot can be done to improve it, particularly for wider screen devices like tablets This also adds the last update time to all views (except home). Function logic was moved to view functions to support this and rss_generator was changed to depend on it --- templates/base.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 7c6fb17..5ca253a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,6 +3,7 @@ {{ domain }}/{{ title }} + {% block css%} {% endblock %} @@ -16,7 +17,7 @@ {{ dir }}/ | {% endfor %} - + @@ -24,11 +25,14 @@
{% block content %} {% endblock %} -

{{ errors }}

+

{{ errors }}

{% if parent_dir != '/site/' %} -

Go up to parent folder ({{ parent_dir }})

+

Go up to parent folder ({{ parent_dir }})

{% endif %}
+ {% if last_update %} +

Last update: {{ last_update }}

+ {% endif %}
{% include 'site/license.html' %}
-- cgit v1.2.3