summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-23Add autogen css from pandocmjfer.netmjfernez
Hopefully will make things look more consistent
2024-03-24Add cats.cssmjfernez
2023-12-24Update SEO, grab meta descriptions from .descmjfernez
Keyword tags are outdated so those have been removed. Descriptions are more important that SEO. The description of the parent directory is used
2023-12-20Revert to original CSS, no improvementsmjfernez
2023-12-20Simplify CSSmjfernez
2023-12-20Better fix for mobile viewmjfernez
2023-12-20Add canonical URL. More SEO tagsmjfernez
2023-12-20Remove mobile formattingmjfernez
2023-11-25Update media dir to be symlinked. Update linksmjfernez
Primarily to save space on git. It's easier to rysnc the images
2023-10-23I'm very bad at CSSmjfernez
2023-10-23Style fix for bulletsmjfernez
2023-09-27Removed bullet pointsmjfernez
2023-07-14Fix link for parent foldermjfernez
2023-07-14Target set to open in new tab by default. +Imagesmjfernez
2022-09-10Ignore RSS descriptions for special character textmjfernez
2022-03-13README updatesmjfernez
Removes caching from the README. Adds git as a requirement for setting the last update date according to the output of git log
2022-03-10Fixes RSS issues. Changes time tracking to gitmjfernez
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
2022-02-26Add mimetypes for html! templatesmjfernez
2022-02-25Add mimetypes for htmlx templatesmjfernez
2022-02-25hotfix for special char error in uwsgimjfernez
2022-02-25Update main css. Add new CSS for resumemjfernez
2022-02-25accidentally merged the example siteconfig woopsmjfernez
2022-02-25Merge server changes from branch mastermjfernez
2022-02-20Remove caching for raw file typesmjfernez
2022-02-06remove timezone from last updatemjfernez
Daylight savings sucks
2022-02-06Correct file last modified timemjfernez
I cannot read apparently. The .ct_time attribute from os.stat tells you the last METADATA change of the file. We only care about content here
2022-02-03Properly do submodules and stop being stupidmjfernez
2022-02-03Fix 500 error for missing filesmjfernez
Instead, entering an invalid path will yield a 404 page as expected. The error was introduced by adding the file_last_modified check before confirming in the file exists in the render_file function
2022-02-03Fixed favicon path. deleted useless scriptmjfernez
2022-01-03Added pics for vim articlemjfernez
I should eventually sort all these out....
2021-12-22revert markdown to text/markdownmjfernez
2021-12-22Removed "/site" appendage. CSS fixesmjfernez
This commit removes the "/site" appended to every directory and solved the problem of redirecting links correctly by setting 'parent_dir' in the main view context to point to '/' by default. This also changes how titles appear to conform to my sensibilities.
2021-11-26Merge branch 'master' into mjfer.netmjfernez
Updates branch to the saner config setup
2021-11-26Separates user configuration siteconfig from coremjfernez
Creates config.py to handle all filesystem stuff
2021-11-14Adjust headings. Add meta tagsmjfernez
2021-11-07Add images for home pagemjfernez
2021-11-07Commit all local files for mjfer.netmjfernez
Excepting files in site-files.git
2021-11-01Optimize mobile CSS. Add last update time defaultmjfernez
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
2021-10-18Fixes is_hidden_path, RSS. Adds txt support, RSSmjfernez
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
2021-10-16Turns off jinja caching. Fixes appropriate cachemjfernez
2021-10-15Link to rss image rather than use from staticmjfernez
This is mostly to avoid license conflicts, I doubt it matters, but would rather be sure.
2021-10-14Adds RSS auto-generation for files in 'site'mjfernez
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.
2021-10-10Improve README. Expanded cache configmjfernez
This commit removes a lot of unnecessary rambling from the README and also makes it easier to use more complex cache options if you want to
2021-10-10Caching support. Separate views.py in 2 filesmjfernez
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
2021-10-06Adds gzip support by defaultmjfernez
This commit adds Flask-Compress to the stack, an excellent module that makes the site load faster. This also adds and amends the default siteconfig
2021-08-25Clarify siteconfigmjfernez
This clarifies what the MAIN_SITE_DIRS option means since one might read it to mean you can put your directories anywhere. Not so, you can only pick which dirs are displayed with that option. Also recommends to not use the secret key unless needed (for what reason, I don't know).
2021-06-17.description is now rendered as htmlmjfernez
.description was previously read as a text file, but this is cumbersome and limits the user. This allows the user to embed html in their .description files by adding the "cur_path" variable to context. 'index.html' has been updated to render the template located in cur_path if a description file exists
2021-06-16hotfix: allowed hiddent top site dirsmjfernez
2021-06-16Changed / to /site, added views.py, README amendedmjfernez
Previously this program served files in the 'templates/site' dir on '/', but this caused problems when accessing raw files using '/raw/' which is useful for embedding or quickly downloading content. It's also an inconvenience to the user, since they have to add a word rather than double-clicking an replacing it. The main server file and the base and index templates have been changed to reflect this. The codebase has been reorganized to separate views from the main flask app. Blueprints were avoided since only one blueprint would be needed so thus unnecessary. README and docstrings were also expanded for clarity and edited for errors. Some comments
2021-06-09Added markdown to default mime typesmjfernez