f46bff6ec6
tweak language around the email
2021-02-23 13:16:58 -06:00
70a8d4f06a
add configurable contact email for error pages
2021-02-23 13:11:52 -06:00
085571e58f
requiremnets bump
2021-02-22 21:20:49 -06:00
0bfea79a8f
log the OSError before returning 500
2021-02-21 19:37:59 -06:00
39d78af524
add error handler pages for 400, 404, 500
2021-02-21 19:35:52 -06:00
e570ee26b5
clean up unused imports
2021-02-21 18:41:09 -06:00
411ecebbc6
fold some nav/style menu styles into header
...
unnecessarily duplicated now that I have div.header, and also useful for
when I start the error handling pages
2021-02-21 10:14:42 -06:00
c1801b0086
move render() into shared spot
...
going to be used by error page handling code, once it exists
2021-02-20 23:36:03 -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
dd7687884a
remove resolve_page_file, been refactored away
2021-02-20 22:50:56 -06:00
15c88d920b
use request path as an alternative to Title metadata
2021-02-20 22:43:42 -06:00
1cef3b8196
rewrite generate_parent_navs to work on resource paths
...
the old code was kind of impossible to understand by reading it, so this
is hopefully considerably clearer
2021-02-20 21:47:39 -06:00
faf4a7f166
minor style cleanup
2021-02-20 19:22:23 -06:00
4dcc1c91c2
add method to from resource path to request path
2021-02-20 19:19:36 -06:00
1c40f45ffd
clarify name of request_path_to_instance_resource_path
2021-02-20 17:53:32 -06:00
6026c51490
add some functional tests for our sanity checks
2021-02-20 17:47:36 -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
b6aa125b8d
add sane_lists to markdown extensions
...
this fixes stuff like
* foo
* bar
1. hax
2021-02-13 11:07:00 -06:00
15142054da
tweak the appearance of footnotes
2021-02-12 19:37:25 -06:00
dc81ef35de
float image left/right for inlining in an article
2021-02-12 12:51:43 -06:00
c292f33334
CSS for framing an image inline the article
2021-02-12 12:51:12 -06:00
1c052b8409
pin bandit in requirements-dev since 1.7.0 is weird in tox
2021-02-12 09:28:12 -06:00
7cf8a427ce
add an .img-25 for 25% wide images
2021-02-12 09:26:10 -06:00
e8a749d9ba
Revert "tweak the base text line height, again"
...
This reverts commit 1878d5951b
.
the more I look at this, the more I like the old text spacing
2021-02-12 09:21:21 -06:00
ae72fe87b5
class to center an image as a block element
...
this is effectively a replacement for div.splash means of getting a
centered header image, and can be used anywhere
2021-02-12 09:19:35 -06:00
bb0e71e9e4
give *all* images max-width of the inner column
...
this was done for the giant splash logo but I should really just
restrain this everywhere
2021-02-12 09:18:54 -06:00
3bfdacdb6d
add attr_list to markdown extensions
...
this will lead to me putting less HTML in the .md files, which is a good
thing
2021-02-12 09:15:41 -06:00
e6d2015de5
use smarty markdown extension for dashes, ellipses
2021-02-11 19:05:01 -06:00
56eb767e33
don't let sub/superscripts affect line height
2021-02-11 18:53:57 -06:00
07031fe667
enable footnotes extra for markdown
2021-02-11 18:36:48 -06:00
48c6e8495a
provide some styling of footnotes
2021-02-11 18:20:42 -06:00
4f45943775
initialize markdown on a per-page basis
...
the footnote extra expects to only parse one document over the Markup's
lifetime, and writes the footnotes to the bottom of every page that is
rendered (again assuming only one) with links back to the reference
having one parser for the entire app, naturally, introduced
ever-increasing footnote links and every footnote on the site showing up
on every page. this was not intended
in some light testing, doing this per-request has a nominal effect on
performance
2021-02-11 18:17:26 -06:00
b26ea6a661
add html tag in order to specify lang="en"
2021-02-11 09:36:24 -06:00
1878d5951b
tweak the base text line height, again
2021-02-11 09:35:21 -06:00
829165ad8c
style link underline same color as the hover
2021-02-11 09:35:21 -06:00
7d982b96c9
tweak text colors; less normal, more bold
2021-02-11 09:35:21 -06:00
5e41cde52e
use a flexbox for the header sections
...
this is better than a float because I have always kind of hated how
floating divs work, and this also orders and displays the navs better in
elinks
2021-02-11 00:23:19 -06:00
ad33cf2e83
replace section tags with div tags
...
syntactically incorrect usage, as picked up by a W3C validator
2021-02-11 00:08:19 -06:00
87ad48d8d2
add mdx-linkify to markdown extensions
2021-01-22 09:51:53 -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
b0795999fe
make splash images look better on small devices
2020-12-14 16:26:08 -06:00
aaced9d0e1
add polycephaly-style figure support
...
this is really pushing my patience for CSS, but I've always thought this
looked nice, so I'm going to try to retain it
2020-12-14 16:25:35 -06:00
4042932240
tone down the line-height a bit
...
I think the color changes and using viewport magic has helped
readability a bit
2020-12-08 18:56:49 -06:00
49ab2befb6
disable browser resize magic, do viewport magic instead
2020-12-08 18:47:02 -06:00
fbf6a81e0b
use my old "square" logo as favicon
...
also provide a backgroundless version as a possible splash page image
2020-12-08 18:46:04 -06:00
dabf9f7544
more corrections of the link colors
2020-12-08 18:27:55 -06:00
dcf173ab61
add a test to ensure style selection works
2020-12-08 17:12:35 -06:00
d2c1c2e3ce
why did I make user styles a config setting???
...
this moves it into the code, where it's sensible, and leaves the default
to the config
2020-12-08 16:43:20 -06:00
3fcf916317
requirements bump
2020-12-08 16:33:19 -06:00