Commit Graph

41 Commits

Author SHA1 Message Date
e19a2456e7
Move listing functionality to generic base page 2022-08-27 12:21:13 +01:00
e6c44e9a8a
Cache page content for a little
This is mostly useful on listing pages
2022-08-24 23:59:17 +01:00
710a4c7955
Humanize reading time 2022-08-19 17:31:40 +01:00
2dd660ed13
Add meta tags 2022-08-19 16:56:20 +01:00
24d92f4760
Use smaller image URL for listing 2022-08-19 14:33:57 +01:00
8952f7eae5
Create base content page rather than need mixin
This makes the subclassing much simpler, and removes type ignore hacks
2022-08-16 21:32:46 +01:00
489a212b7a
Only render content once 2022-08-16 20:50:34 +01:00
cf0a365277
Ensure additional content fields get indexed 2022-07-28 23:06:11 +01:00
d995b412a0
Remove django-stubs
It's just not quite there yet for a lot of things, and makes certain things a right pain!
2022-07-28 20:15:20 +01:00
0601ced3f5
Add indexes to snippets 2022-07-26 08:41:40 +01:00
71c08f5568
Use class name rather than database name for body classes
This avoids duplication and makes the classnames a bit shorter, and more sane.
2022-07-25 19:30:47 +01:00
9b7a2b2c21
Move accounts snippet to new contact app 2022-07-20 09:15:12 +01:00
3306ec4e5a
Fix resolving parent pages
The order is actually correct for what we want. Also update the type
2022-07-16 10:29:47 +01:00
1acaca3ce6
Add social accounts snippet 2022-07-14 22:03:24 +01:00
72ac1bc1da
Add reusable referral links 2022-07-14 22:02:01 +01:00
b155ec2e9b
Allow unsplash images to be used as hero images 2022-07-12 22:45:50 +01:00
72dc3cc4ea
Add chooser for unsplash photos
It doesn't show images, yet
2022-07-12 15:14:27 +01:00
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