aboutsummaryrefslogtreecommitdiffstats
path: root/rss_generator.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes RSS issues. Changes time tracking to gitmjfernez2022-03-101-6/+12
| | | | | | | | | | | | This commit primarily changes the code base to base the file last modified time on the output of "git log". This adds dateutil and git itself as a dependency, but those are pretty common... This also fixes some minor issues including: - missing / between mjfer.net and the URI - README up to date with latest changes - linting
* Merge server changes from branch mastermjfernez2022-02-251-2/+2
|
* Optimize mobile CSS. Add last update time defaultmjfernez2021-11-011-5/+5
| | | | | | | | | | | 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-9/+38
| | | | | | | | | | | | | | | 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
* Adds RSS auto-generation for files in 'site'mjfernez2021-10-141-0/+74
This commit adds rss_generator.py which contains the main logic for indexing the site directory and generating a feed on startup. It serves as a sort of ad-hoc database which is accessed when /feed.xml is requested. Also corrects various typos, README nonsense, and expands the config options for RSS. Instances of './templates/site' have been replaced with the general BASE_DIR variable in the siteconfig.