88b6f4b61b
Get content based on original HTML
...
It can't be done post anchoring, else the '#' end up in the ToC
2022-07-04 19:00:20 +01:00
ccb481726c
Optimise getting content HTML by only parsing the necessary tags
2022-07-04 18:55:18 +01:00
4702afd5dd
Reduce complexity trying to save computation on rendering streamfield
...
This replaces more custom iteration with caching, which will end up faster anyway, and is more drop-in with the new structure.
Sadly it still renders the content twice, as `get_content_html` requires access to the blocks.
2022-07-03 23:10:57 +01:00
ebfb909c98
Add missing type annotation
2022-07-03 22:00:52 +01:00
03e9da57a1
Add anchor links to headers
2022-07-01 09:25:57 +01:00
af2dba84cd
Get table of contents from body
2022-06-30 23:27:50 +01:00
2012b245a8
Add summary to content
2022-06-26 19:52:20 +01:00
299a6342cc
Add basic word count and reading time
2022-06-26 19:25:30 +01:00
b7163c3076
Create basic streamfield
2022-06-26 18:37:04 +01:00
6f3c7a0162
Pull reading times and word count from Python
2022-06-19 21:16:03 +01:00
6600b9ccb7
Build ToC from python
2022-06-19 20:14:22 +01:00
43bbb7fbcd
Add breadcrumbs
2022-06-19 16:56:47 +01:00
720557d2a6
Read child pages from DB
2022-06-19 16:35:56 +01:00
39a59b88db
Add skeleton listing page
2022-06-19 13:23:41 +01:00
3b51546fce
Ensure hero images are optional
2022-06-19 11:36:15 +01:00
a5abb51538
Separate hero into its own file
2022-06-17 15:58:23 +01:00
42b58eda6d
Show pages in menu by default
2022-06-17 14:03:43 +01:00
8aea60da35
Add dynamic images to home and content pages
2022-06-15 09:27:20 +01:00
6d27add843
Use Django's method for class properties
2022-06-14 22:30:39 +01:00
b1b6aeb818
Add basic content page
2022-06-14 20:57:43 +01:00
e2d5101a56
Add linting
2022-06-12 15:24:17 +01:00
d17b0af9f6
Add tests for unique body classes
2022-06-10 16:22:20 +01:00
82f3163ff5
Derive body class for pages
2022-06-10 15:54:31 +01:00
3986b30a64
Create a base page model for all other to inherit
2022-06-10 15:48:07 +01:00