Commit Graph

44 Commits

Author SHA1 Message Date
0424c2dba2
Fix issues with public tags in templates 2024-02-06 18:35:40 +00:00
ae4ea780b7
Only show published tags 2024-01-27 19:59:59 +00:00
a8cd2742ab
Unify page feed implementations
No need for a separate class just to handle blog publish dates
2023-11-29 14:17:22 +00:00
cbd1eb027b
Add "View all" button for similar content 2023-06-21 12:53:37 +01:00
e8cd4f6628
Add tests for post similarity 2023-06-02 17:39:42 +01:00
b7bcaeff63
Use alias instead of annotate for intermediary similarity values 2023-06-02 17:35:20 +01:00
033b8be859
Cast count to float before dividing
`COUNT` returns a `bigint`, which can't be divided into a float
2023-06-02 17:34:10 +01:00
6ab0ff3fa7
Add similar content based on text Trigram similarity 2023-06-02 15:33:15 +01:00
66465dafe8
Index tags and boost subtitle 2022-10-31 20:59:24 +00:00
b6fa67163f
Only show ToC if there are enough items 2022-10-29 14:57:12 +01:00
a031adefda
Add tag list button to post list hero 2022-10-29 13:22:21 +01:00
db6dd80385
Remove ToC from blog list page
Showing an accurate ToC is complex alongside pagination
2022-10-21 16:56:40 +01:00
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
e4476e1b2a
Ensure heading ids are always valid ids 2022-09-23 15:36:23 +01:00
bee03a8e64
Add link to tags list to tags on content details 2022-09-23 08:45:17 +01:00
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
82701a706c
Show blog list ToC with newest first 2022-09-20 09:54:26 +01:00
442aeb21b8
Use singleton URL cache 2022-08-28 20:22:55 +01:00
557a28833b
Only show public pages 2022-08-28 16:51:27 +01:00
47980032b0
Add autocomplete for blog pots tags 2022-08-28 16:18:31 +01:00
c660e54bae
Add method to prefetch for listing 2022-08-28 14:52:27 +01:00
735ab73ec0
Inline select_related calls 2022-08-28 12:59:09 +01:00
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
2df1e82f31
Allow customizing HTML and hero titles 2022-08-27 13:12:45 +01:00
e19a2456e7
Move listing functionality to generic base page 2022-08-27 12:21:13 +01:00
0fbd36ce3e
Add pagination to blog post list 2022-08-26 23:13:06 +01:00
3f9288f5cb
Ensure hero images are prefetched during lists 2022-08-25 22:27:28 +01:00
3e6547881e
Rename blog post models
A "blog" isn't a blog "post"
2022-08-20 14:20:12 +01:00
90545c3e2a
Fix reading time on blog list 2022-08-20 11:22:50 +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
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
f8d5cc5ba5
Add feeds to blog list pages 2022-07-25 21:58:06 +01:00
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
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
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
78660500a5
Add tag filtered view to blog list 2022-07-16 00:56:20 +01:00
b155ec2e9b
Allow unsplash images to be used as hero images 2022-07-12 22:45:50 +01:00
ae4e24481e
Add date group headers to blog list page 2022-07-10 18:42:16 +01:00
acfc7852b3
Disable reading time and ToC for blog list page 2022-06-26 17:00:44 +01:00
b4c5032448
Prefetch tags when listing 2022-06-26 12:55:08 +01:00
ce68aa7291
Add date to blog posts 2022-06-19 21:03:05 +01:00
29673c365f
Add tagging to blog post pages 2022-06-19 20:55:37 +01:00
7b5d597d34
Create blog pages 2022-06-19 19:24:29 +01:00