Commit Graph

193 Commits

Author SHA1 Message Date
c8f01870d4
Use simpler listing on tag list page 2022-10-21 17:20:58 +01:00
26fabf3a43
Ensure tags are sorted 2022-10-21 17:11:15 +01:00
549a48769d
Swap curlylint and djhtml with djlint 2022-10-05 14:17:00 +01:00
315412ff5d
Remove unused import and update query count 2022-10-05 09:23:58 +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
fa85c8ba80
Cache fragments for longer, and clear when editing page 2022-10-04 20:14:26 +01:00
9096bd4b0b
Fix sizing of content images 2022-10-02 22:38:10 +01:00
8844aad247
Disallow API from being indexed 2022-10-02 19:20:40 +01:00
6d0c25128c
Always disallow wagtail admin 2022-10-02 19:17:33 +01:00
197f2ea0aa
Move cache handling to views 2022-10-02 18:53:51 +01:00
23b8454fe4
Add template caching for listing components 2022-10-02 17:27:55 +01:00
6775a336e1
Revert "Add the ability to cache model attributes in redis"
This reverts commit 7c008c2149.
2022-10-02 16:17:55 +01:00
7c008c2149
Add the ability to cache model attributes in redis
This not only means they persist longer than the instance, but can also be shared between processes. This is especially useful for list pages, as rendering content for summaries etc is quite expensive
2022-09-29 22:59:23 +01:00
d1523a886b
Use fira-code package with support for font-display 2022-09-29 21:05:19 +01:00
f2e2719647
Add title to navbar icon links 2022-09-29 20:55:43 +01:00
e05d2675d5
Add blank alt tag to hero image 2022-09-29 20:55:35 +01:00
e7037d01b0
Remove stray description tag 2022-09-29 20:42:25 +01:00
1f5e151314
Ignore more blocks when getting plaintext 2022-09-25 21:54:02 +01:00
92f1a17b9f
Always show pagination buttons 2022-09-25 21:10:35 +01:00
79c9550ee2
Make sure commento works in dark mode 2022-09-23 17:27:03 +01:00
dcb8162517
Ensure tags use code font 2022-09-23 16:44:22 +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
4b10ce6f6f
Restyle content details to be icons rather than tags
This looks much nicer, and is simpler to work with
2022-09-23 08:34:49 +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
fb15c480a3
Add link to full content in iframe block 2022-09-08 20:58:13 +01:00
c6c913c3e7
Make subtitle more visually distinct from content 2022-09-08 14:42:45 +01:00
8b027206b1
Add comments and sharing to all content pages
Listing pages already have this block overwritten for pagination
controls
2022-09-08 14:37:18 +01:00
63909a31c0
Add iframe block 2022-09-08 14:31:01 +01:00
c7e56ab038
Don't show word count if there isn't one
This mostly covers spotify pages, which use a custom reading time but
don't have words.
2022-09-06 09:17:42 +01:00
71f74251bb
Don't require code header 2022-09-06 08:58:44 +01:00
b95506d711
Don't load analytics when logged in or preview 2022-09-06 08:24:54 +01:00
1474131771
Thin fonts on 500 page 2022-09-05 14:29:17 +01:00
0711288197
Style 500 page 2022-09-05 14:17:48 +01:00
0a136496f4
Remove caches from base template
These components are pretty efficient, and it makes content editing more
annoying.
2022-09-05 13:58:36 +01:00
a76b9df329
Fix 404s if there's no resolver match 2022-09-04 18:17:06 +01:00
f40681d06a
Add caching to listing feeds 2022-09-04 17:34:04 +01:00
e21d525259
Reset migrations
During dev I made loads, but I don't need them now
2022-09-04 15:56:51 +01:00
ee307bcfbf
Define rich text features in settings
This removes them from migrations, avoiding the need to create new ones
when they change
2022-09-03 21:07:27 +01:00
a053e27833
Use richtext for subtitle 2022-09-03 17:00:09 +01:00
6dfbb830ef
Add IE11 deterrent 2022-09-03 16:35:39 +01:00
eaa5b063f4
Use smaller, PNG image for meta image
This ensures it's not too large, but also crawlers are more likely to
support PNG than webp
2022-09-03 16:21:24 +01:00
8691d11a15
Only render comments in debug 2022-09-02 17:20:03 +01:00
7fff13f0ab
Add lightbox for content images 2022-09-02 17:18:40 +01:00
611e343564
Just use a simple icon field
The library has some issues, even if it is great

https://github.com/saschaludwig/django-fontawesome-6/pull/2
2022-09-02 15:29:12 +01:00
7026aca934
Add account links to footer
Putting them in the navbar is too crowded.
2022-09-02 09:28:35 +01:00
6d60cedc6f
Add comments 2022-09-02 08:27:42 +01:00
54af457d8e
Add SRI 2022-09-01 08:36:39 +01:00
5d370a0712
Unify pygments stylesheet
It's less generic and less cool, but this bakes the styles for dark and
light into a single stylesheet, and deals with switching without any JS.
2022-08-31 23:02:13 +01:00
488369a247
Add filename and header show checkbox to code block 2022-08-31 22:30:08 +01:00