aboutsummaryrefslogtreecommitdiffstats
path: root/view_functions.py
Commit message (Collapse)AuthorAgeFilesLines
* Pull changes from mjfer.netmjfernez2022-03-131-3/+14
| | | | | This commit adds the changes from the mjfer.net which enable using git as the file last update tracker
* Remove flask caching and unused importsmjfernez2022-02-251-1/+1
| | | | | | | | | | | | | This removes Flask caching since it seems I'm dumb and can't implement it correctly and it seems to serve pretty much no purpose anyway. Caching can always be handled by the server in front This commit also removes some unused imports that were leftover after moving functionality to different files (like view_functions) Flask compress might be useless too since nginx can also gzip. But I can actually observe the change... is there any problem with double gzipping?
* merge fix for ctime->mtime for file_last_modifiedmjfernez2022-02-061-1/+1
|
* Optimize mobile CSS. Add last update time defaultmjfernez2021-11-011-0/+4
| | | | | | | | | | | 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
* Fixes is_hidden_path, RSS. Adds txt support, RSSmjfernez2021-10-181-13/+10
| | | | | | | | | | | | | | | This commit fixes the is_hidden_path function to work for subdirectories and also remove entries from the RSS file view_functions.py has been refactored use the siteconfig file instead of the app to remove unecessary imports and avoid circularly imports This also moves logic for the default site directories from server.py to siteconfig.py so it's accessible before the app runs. This has the benefit of cleaning up the server file, but the drawback of adding the os import to the siteconfig file. Settings have been moved around for (hopefully) easier reading
* Caching support. Separate views.py in 2 filesmjfernez2021-10-101-0/+71
This commit adds the Flask-Caching module to the software stack and enables the caching of views in a wide variety of ways, but implemented here to be simple to understand to someone new to the concept of caching (aka me). Various documentation and formatting was applied to all files. views.py internal functions (mostly related to filesystem operations of the server). have been moved into view_functions.py