954f7f4e80
allow markdown files to specify a redirect
...
closes #13
2021-06-06 22:24:35 -05:00
e8377adcf5
allow pages to specify different templates
2021-04-30 19:41:39 -05:00
cde82ab918
don't route /media separately anymore
2021-04-17 11:16:34 -05:00
60715a3a5c
make request -> instance conversion support symlink dirs
...
I think this also clarifies the code, a bit
2021-04-17 10:31:05 -05:00
c90f0a3a42
treat symlinks as redirects
...
closes #7
2021-04-15 21:44:02 -05:00
be88c3c1bc
don't error on breadcrumbs if a dir doesn't have index.md
...
fixes #8
2021-04-14 21:35:14 -05:00
ced67bec8b
allow for serving files directly inside pages/
2021-04-14 20:45:50 -05:00
39d78af524
add error handler pages for 400, 404, 500
2021-02-21 19:35:52 -06:00
f08c1117d8
move site suffix into title always
...
this tweaks the behavior of the title to always append ' - suffix' to
any title (from the meta tag, or generated via request path), unless the
page explicitly specifies an empty Title meta tag
2021-02-20 23:21:29 -06:00
15c88d920b
use request path as an alternative to Title metadata
2021-02-20 22:43:42 -06:00
2e0e87fe95
begin rewriting path to resource resolver
...
this code was getting too messy and scattered, and I realized that Flask
wasn't doing as much as I thought it was here, so now we need more
safety and sanity checks
2021-02-20 17:42:58 -06:00
8a6f4d6b45
test multi-line metadata entries
2021-01-17 23:58:57 -06:00
c25fefa9e3
add opengraph metadata to pages, via Markdown meta
2021-01-17 23:02:14 -06:00
7cf11986c5
user-selectable light and dark themes
...
cookies, template rendering with different CSS files via default or
request param or cookie, etc.
2020-10-30 00:19:19 -05:00
14f6125f4e
use new-style tox.ini, add flake8-docstrings, add docstrings
2020-06-17 20:18:43 -05:00
576ffc359c
show some navigation on every page
...
closes #1
2020-03-15 20:33:23 -05:00
2634c144a7
support a media/ dir under the instance dir
...
this is for miscellaneous files that should be served directly rather
than being a page route
2020-03-08 11:48:49 -05:00
fe0ca7d90b
rename journal module to pages
...
this better represents the general purpose of this module, rather than
just "journal" stuff (though that will likely be a use)
2020-03-07 14:11:12 -06:00
1f420eab30
journal: render markdown content + title metadata
...
this has a really basic template and whatnot at the moment, so
styling/etc isn't done, but this is maybe the last major piece before I
could actually see pushing this onto the site
2020-03-07 12:06:21 -06:00
0118eb2994
improve the logging inside pytest
2020-03-07 11:45:42 -06:00
053e3d96a3
attempt to load resolved journal files
...
one step closer to actual functionality, attempt to load the resolved
markdown file in the instance directory, or 404 if it doesn't exist
2020-03-07 10:08:23 -06:00