Commit Graph

150 Commits

Author SHA1 Message Date
Brian S. Stephan c15862850f add a CONTRIBUTING file 2021-06-04 17:41:18 -05:00
Brian S. Stephan afbfab338f properly apply site wrap classes to style wide version
fixes #12
2021-06-03 07:52:01 -05:00
Brian S. Stephan cac6b40af5 relicense the project under GPLv2
prepping for an actual public release of a sort, this hopefully
clarifies the license and copyright

license from https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
2021-06-02 07:44:23 -05:00
Brian S. Stephan 65bc028524 implement base-wide.html as an extension of base.html
not quite sure why I didn't think of this initially... too much hacking
2021-05-19 22:30:20 -05:00
Brian S. Stephan e8377adcf5 allow pages to specify different templates 2021-04-30 19:41:39 -05:00
Brian S. Stephan f4beb15a3b make directory redirects absolute paths
I think this is always the right choice, since we're rewriting the full
input path
2021-04-17 15:06:39 -05:00
Brian S. Stephan da447d2873 Merge branch 'master' of git.incorporeal.org:bss/incorporeal-cms 2021-04-17 14:57:20 -05:00
Brian S. Stephan cde82ab918 don't route /media separately anymore 2021-04-17 11:16:34 -05:00
Brian S. Stephan 1ac13f3b9c add some 500 tests for test coverage 2021-04-17 11:08:01 -05:00
Brian S. Stephan 6705fa38eb requirements bumps 2021-04-17 10:58:06 -05:00
Brian S. Stephan 30b79e9dc1 add tests for subdir symlinks
this is automagically supported by the previous rewrite
2021-04-17 10:39:05 -05:00
Brian S. Stephan 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
Brian S. Stephan c90f0a3a42 treat symlinks as redirects
closes #7
2021-04-15 21:44:02 -05:00
Brian S. Stephan 71ead20f3f have file handler return render type rather than bool
for when we have further types to render
2021-04-15 20:36:30 -05:00
Brian S. Stephan be88c3c1bc don't error on breadcrumbs if a dir doesn't have index.md
fixes #8
2021-04-14 21:35:14 -05:00
Brian S. Stephan ced67bec8b allow for serving files directly inside pages/ 2021-04-14 20:45:50 -05:00
Brian S. Stephan 757b067e16 create a "plain" style with next to no CSS 2021-03-09 09:10:33 -06:00
Brian S. Stephan 06d948a709 have specific styles @import the base styles
this clarifies the value of what was formerly "style.css" a bit, and
also opens the door for potential styles that don't inherit the base
styling at all
2021-03-07 23:09:58 -06:00
Brian S. Stephan d89fd151ca use just the page part of the path in breadcrumbs
rather than showing the full path (e.g. /foo/bar/baz) in breadcrumbs
when the page doesn't have a Title, show just the leaf (baz)

Closes #4
2021-02-27 00:30:32 -06:00
Brian S. Stephan ce1ed60dd2 allow for configuration to override the favicon
Closes #5
2021-02-27 00:10:03 -06:00
Brian S. Stephan f46bff6ec6 tweak language around the email 2021-02-23 13:16:58 -06:00
Brian S. Stephan 70a8d4f06a add configurable contact email for error pages 2021-02-23 13:11:52 -06:00
Brian S. Stephan 085571e58f requiremnets bump 2021-02-22 21:20:49 -06:00
Brian S. Stephan 0bfea79a8f log the OSError before returning 500 2021-02-21 19:37:59 -06:00
Brian S. Stephan 39d78af524 add error handler pages for 400, 404, 500 2021-02-21 19:35:52 -06:00
Brian S. Stephan e570ee26b5 clean up unused imports 2021-02-21 18:41:09 -06:00
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan dd7687884a remove resolve_page_file, been refactored away 2021-02-20 22:50:56 -06:00
Brian S. Stephan 15c88d920b use request path as an alternative to Title metadata 2021-02-20 22:43:42 -06:00
Brian S. Stephan 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
Brian S. Stephan faf4a7f166 minor style cleanup 2021-02-20 19:22:23 -06:00
Brian S. Stephan 4dcc1c91c2 add method to from resource path to request path 2021-02-20 19:19:36 -06:00
Brian S. Stephan 1c40f45ffd clarify name of request_path_to_instance_resource_path 2021-02-20 17:53:32 -06:00
Brian S. Stephan 6026c51490 add some functional tests for our sanity checks 2021-02-20 17:47:36 -06:00
Brian S. Stephan 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
Brian S. Stephan b6aa125b8d add sane_lists to markdown extensions
this fixes stuff like

* foo
* bar

1. hax
2021-02-13 11:07:00 -06:00
Brian S. Stephan 15142054da tweak the appearance of footnotes 2021-02-12 19:37:25 -06:00
Brian S. Stephan dc81ef35de float image left/right for inlining in an article 2021-02-12 12:51:43 -06:00
Brian S. Stephan c292f33334 CSS for framing an image inline the article 2021-02-12 12:51:12 -06:00
Brian S. Stephan 1c052b8409 pin bandit in requirements-dev since 1.7.0 is weird in tox 2021-02-12 09:28:12 -06:00
Brian S. Stephan 7cf8a427ce add an .img-25 for 25% wide images 2021-02-12 09:26:10 -06:00
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan e6d2015de5 use smarty markdown extension for dashes, ellipses 2021-02-11 19:05:01 -06:00
Brian S. Stephan 56eb767e33 don't let sub/superscripts affect line height 2021-02-11 18:53:57 -06:00
Brian S. Stephan 07031fe667 enable footnotes extra for markdown 2021-02-11 18:36:48 -06:00