summaryrefslogtreecommitdiff
path: root/templates/site
AgeCommit message (Collapse)Author
2021-12-22Remove site as the parent directory, manual mergemjfernez
merges needed changes (and CSS) from mjfer.net branch
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-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
2021-06-09Force UTF-8 encodingmjfernez
2021-06-08Remove swap filesmjfernez
2021-06-08Added ability to override templates.mjfernez
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
2021-06-07first commitmjfernez