Commit Graph

37 Commits

Author SHA1 Message Date
Jake Howard 6ab0ff3fa7
Add similar content based on text Trigram similarity 2023-06-02 15:33:15 +01:00
Jake Howard 66465dafe8
Index tags and boost subtitle 2022-10-31 20:59:24 +00:00
Jake Howard b6fa67163f
Only show ToC if there are enough items 2022-10-29 14:57:12 +01:00
Jake Howard a031adefda
Add tag list button to post list hero 2022-10-29 13:22:21 +01:00
Jake Howard db6dd80385
Remove ToC from blog list page
Showing an accurate ToC is complex alongside pagination
2022-10-21 16:56:40 +01:00
Jake Howard b515b6368c
Optimise for cache hits
Don't select/prefetch for listing, because we cache the entire listing item. This makes the main query more efficient, thus page loads faster.
2022-10-04 20:49:29 +01:00
Jake Howard e4476e1b2a
Ensure heading ids are always valid ids 2022-09-23 15:36:23 +01:00
Jake Howard bee03a8e64
Add link to tags list to tags on content details 2022-09-23 08:45:17 +01:00
Jake Howard bccc948995
Restructure fields in editor pages
Move as much as possible out of the "Content" tab, so that's just about
the actual content
2022-09-21 13:30:06 +01:00
Jake Howard 82701a706c
Show blog list ToC with newest first 2022-09-20 09:54:26 +01:00
Jake Howard 442aeb21b8
Use singleton URL cache 2022-08-28 20:22:55 +01:00
Jake Howard 557a28833b
Only show public pages 2022-08-28 16:51:27 +01:00
Jake Howard 47980032b0
Add autocomplete for blog pots tags 2022-08-28 16:18:31 +01:00
Jake Howard c660e54bae
Add method to prefetch for listing 2022-08-28 14:52:27 +01:00
Jake Howard 735ab73ec0
Inline `select_related` calls 2022-08-28 12:59:09 +01:00
Jake Howard e79625a441
Correctly allow ordering of collection pages
`.specific` isn't quite as magical as it needs to be, so we have to be
explicit
2022-08-27 13:13:14 +01:00
Jake Howard 2df1e82f31
Allow customizing HTML and hero titles 2022-08-27 13:12:45 +01:00
Jake Howard e19a2456e7
Move listing functionality to generic base page 2022-08-27 12:21:13 +01:00
Jake Howard 0fbd36ce3e
Add pagination to blog post list 2022-08-26 23:13:06 +01:00
Jake Howard 3f9288f5cb
Ensure hero images are prefetched during lists 2022-08-25 22:27:28 +01:00
Jake Howard 3e6547881e
Rename blog post models
A "blog" isn't a blog "post"
2022-08-20 14:20:12 +01:00
Jake Howard 90545c3e2a
Fix reading time on blog list 2022-08-20 11:22:50 +01:00
Jake Howard 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
Jake Howard cf0a365277
Ensure additional content fields get indexed 2022-07-28 23:06:11 +01:00
Jake Howard 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
Jake Howard f8d5cc5ba5
Add feeds to blog list pages 2022-07-25 21:58:06 +01:00
Jake Howard 6b96688adb
Add the concept of post collections
For things which are a fixed series (eg yearly repeats)
2022-07-16 15:45:57 +01:00
Jake Howard 2ae8ec7045
Optimise getting blog posts for a tag
Because we can guarantee there's only 1 `BlogListPage`, the query becomes much simpler
2022-07-16 10:44:48 +01:00
Jake Howard 690095ea52
Replace tag snippets with full pages
Makes the page tree a bit more messy, but is much more versatile and means there are fewer hacks in the code to make snippets act like pages in the tree.
2022-07-16 10:29:01 +01:00
Jake Howard 78660500a5
Add tag filtered view to blog list 2022-07-16 00:56:20 +01:00
Jake Howard b155ec2e9b
Allow unsplash images to be used as hero images 2022-07-12 22:45:50 +01:00
Jake Howard ae4e24481e
Add date group headers to blog list page 2022-07-10 18:42:16 +01:00
Jake Howard acfc7852b3
Disable reading time and ToC for blog list page 2022-06-26 17:00:44 +01:00
Jake Howard b4c5032448
Prefetch tags when listing 2022-06-26 12:55:08 +01:00
Jake Howard ce68aa7291
Add date to blog posts 2022-06-19 21:03:05 +01:00
Jake Howard 29673c365f
Add tagging to blog post pages 2022-06-19 20:55:37 +01:00
Jake Howard 7b5d597d34
Create blog pages 2022-06-19 19:24:29 +01:00