aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add canonical URL. More SEO tagsmjfernez2023-12-201-1/+3
|
* Remove mobile formattingmjfernez2023-12-202-2/+2
|
* Update media dir to be symlinked. Update linksmjfernez2023-11-2519-16/+8
| | | | Primarily to save space on git. It's easier to rysnc the images
* I'm very bad at CSSmjfernez2023-10-231-0/+1
|
* Style fix for bulletsmjfernez2023-10-232-1/+1
|
* Removed bullet pointsmjfernez2023-09-273-0/+9
|
* Fix link for parent foldermjfernez2023-07-142-1/+1
|
* Target set to open in new tab by default. +Imagesmjfernez2023-07-145-5/+6
|
* Ignore RSS descriptions for special character textmjfernez2022-09-102-2/+5
|
* README updatesmjfernez2022-03-131-3/+3
| | | | | Removes caching from the README. Adds git as a requirement for setting the last update date according to the output of git log
* Fixes RSS issues. Changes time tracking to gitmjfernez2022-03-109-32/+64
| | | | | | | | | | | | 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
* Add mimetypes for html! templatesmjfernez2022-02-262-1/+1
|
* Add mimetypes for htmlx templatesmjfernez2022-02-251-1/+2
|
* hotfix for special char error in uwsgimjfernez2022-02-251-0/+0
|
* Update main css. Add new CSS for resumemjfernez2022-02-253-1/+144
|
* accidentally merged the example siteconfig woopsmjfernez2022-02-251-6/+6
|
* Merge server changes from branch mastermjfernez2022-02-255-47/+13
|
* Remove caching for raw file typesmjfernez2022-02-202-4/+3
|
* remove timezone from last updatemjfernez2022-02-061-1/+1
| | | | Daylight savings sucks
* Correct file last modified timemjfernez2022-02-061-1/+1
| | | | | | 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
* Properly do submodules and stop being stupidmjfernez2022-02-032-1/+3
|
* Fix 500 error for missing filesmjfernez2022-02-031-8/+11
| | | | | | | 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
* Fixed favicon path. deleted useless scriptmjfernez2022-02-032-4/+1
|
* Added pics for vim articlemjfernez2022-01-034-0/+0
| | | | I should eventually sort all these out....
* revert markdown to text/markdownmjfernez2021-12-221-1/+1
|
* Removed "/site" appendage. CSS fixesmjfernez2021-12-226-19/+22
| | | | | | | | 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.
* Merge branch 'master' into mjfer.netmjfernez2021-11-262-34/+40
|\ | | | | | | Updates branch to the saner config setup
| * Separates user configuration siteconfig from coremjfernez2021-11-262-34/+40
| | | | | | | | Creates config.py to handle all filesystem stuff
* | Adjust headings. Add meta tagsmjfernez2021-11-142-33/+48
| |
* | Add images for home pagemjfernez2021-11-075-9/+9
| |
* | Commit all local files for mjfer.netmjfernez2021-11-0736-212/+62
|/ | | | Excepting files in site-files.git
* Optimize mobile CSS. Add last update time defaultmjfernez2021-11-016-33/+94
| | | | | | | | | | | 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-184-51/+78
| | | | | | | | | | | | | | | 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
* Turns off jinja caching. Fixes appropriate cachemjfernez2021-10-163-2/+5
|
* Link to rss image rather than use from staticmjfernez2021-10-153-4/+5
| | | | | This is mostly to avoid license conflicts, I doubt it matters, but would rather be sure.
* Adds RSS auto-generation for files in 'site'mjfernez2021-10-149-42/+216
| | | | | | | | | | | 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.
* Improve README. Expanded cache configmjfernez2021-10-103-40/+45
| | | | | | 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
* Caching support. Separate views.py in 2 filesmjfernez2021-10-105-85/+134
| | | | | | | | | | | 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
* Adds gzip support by defaultmjfernez2021-10-063-7/+17
| | | | | | 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
* Clarify siteconfigmjfernez2021-08-253-43/+43
| | | | | | | | | 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).
* .description is now rendered as htmlmjfernez2021-06-173-5/+8
| | | | | | | | .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
* hotfix: allowed hiddent top site dirsmjfernez2021-06-161-1/+2
|
* Changed / to /site, added views.py, README amendedmjfernez2021-06-165-180/+204
| | | | | | | | | | | | | | | | | | | | 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
* Added markdown to default mime typesmjfernez2021-06-094-43/+45
|
* Force UTF-8 encodingmjfernez2021-06-093-3/+36
|
* PEP8 and README tweaksmjfernez2021-06-092-29/+31
| | | | | Fixes PEP8 formatting because apparently coala messed this up. Added some clarifying notes in the README.
* Added some more uwsgi tips to READMEmjfernez2021-06-081-5/+22
|
* Remove swap filesmjfernez2021-06-088-0/+3
|
* Added ability to override templates.mjfernez2021-06-0811-13/+52
| | | | | | | | | This commit primarily adds the ability to override the base template by adding a '!' on HTML files. It also makes adjustments to the index page display to not show this extra character. Additions to the README reflecting this change, as well as small note on similarity to neocities was added
* wsgi compatibilitymjfernez2021-06-073-11/+11
| | | | | Moves the setup() function outside of main so the app is setup before a wrapper runs it. Also fixes deployment tutorial in the README