Commit Graph

385 Commits

Author SHA1 Message Date
d85065d914
Colour language tag using GitHub's linguist colours 2023-04-21 21:22:59 +01:00
e504da0bcf
Restyle code block header
This looks much nicer, and removes a DB field.
2023-04-19 21:34:38 +01:00
dde014860a
Unset HttpOnly for CSRF cookie 2023-04-16 16:48:58 +01:00
bc95a8ea21
Upgrade Django and everything else 2023-04-16 15:56:58 +01:00
6342726d7c
Change footer settings to generic setting 2023-04-16 15:18:21 +01:00
8b37b87a92
Don't show share buttons in preview 2023-04-16 15:05:10 +01:00
fbef7c61b2
Remove what's new banner 2023-04-16 15:04:59 +01:00
f055517cc1
Update to Wagtail 4.1 2023-04-16 15:04:51 +01:00
9bc5ccbbdc
Don't include the first tangent in the content HTML
This prevents it being used as part of the summary, which in the case of updates looks strange.
2023-04-11 14:05:46 +01:00
68604e0438
Remove rarely used share platforms and make them all links
This means they all get `href`s rather than being buttons with click handlers, making them easier to use.
2023-03-10 16:45:43 +00:00
8469f1db1f
Don't show comments in preview mode 2023-03-10 16:10:47 +00:00
83bc0d2ffb
Fix length calculation for posts
`smart_split` isn't quite what's needed for splitting words.
2023-03-10 16:08:03 +00:00
f903dfcc8b
Add redirect URL for mastodon user 2023-03-06 14:32:00 +00:00
d8a8e7fd8e
Use nginx to serve static files
This should keep easy requests out the app event loop, hopefully improving response time
2023-02-21 21:46:26 +00:00
8969ae369d
Add return types to tests 2022-11-18 08:31:43 +00:00
37cf309bb0
Add activitypub well-known forwarding
Disabled until needed
2022-11-17 22:36:22 +00:00
d16c8d83f0
Allow setting ALLOWED_HOSTS directly 2022-11-16 14:57:33 +00:00
6f6e57a0c7
Add enforce host 2022-11-16 14:31:44 +00:00
66465dafe8
Index tags and boost subtitle 2022-10-31 20:59:24 +00:00
1e2e488516
Add slashes to API URLs 2022-10-31 20:59:24 +00:00
66156f2be7
Correctly order LMOTFY endpoint
Ordering by "relevance" actually yields the least relevant results first. Remove ordering and assume the most relevant is what's needed.
2022-10-31 20:59:24 +00:00
0069af1233
Only stick header on desktop
On mobile, it takes up a huge amount of the viewport
2022-10-31 14:09:48 +00:00
5a8116ec22
Fix default CSP 2022-10-31 09:57:49 +00:00
ccdc3e918e
Add types for permissions policy 2022-10-30 19:35:26 +00:00
01d78a7378
Add permissions policy 2022-10-30 19:12:26 +00:00
d809890b0f
Add naive CSP
This is a very weak setup so far, as requires some more testing to confirm which origins are allowed for each resource.
2022-10-30 19:09:38 +00:00
e630ef8856
Allow swagger editor to make CORS requests 2022-10-30 19:00:27 +00:00
91d022c44c
Bump HSTS to 30 days 2022-10-30 18:56:40 +00:00
dc02e989e1
Fix number of queries 2022-10-30 13:39:02 +00:00
1eb14f3fb5
Ensure feed titles reference the full site 2022-10-30 12:53:35 +00:00
fe3c741347
Construct HTML title in Python
Site is cached, and makes it easier to reference elsewhere
2022-10-30 12:53:15 +00:00
2e4e54418d
Reduce debounce time for search 2022-10-29 16:28:18 +01:00
0ac4fd1135
Don't fill full width in lightbox 2022-10-29 16:25:51 +01:00
bb8c40f72e
Use sri_static tag for dark mode 2022-10-29 15:19:58 +01:00
7ed5255b69
Add cache around navbar and footer
Intentionally outside the tag as generating the context does queries
2022-10-29 15:14:39 +01:00
0e20ad3269
Fix query numbers based on guestbook heading 2022-10-29 15:02:41 +01:00
b6fa67163f
Only show ToC if there are enough items 2022-10-29 14:57:12 +01:00
2fbc96946d
Ensure dark mode toggle is always in the corner 2022-10-29 14:50:53 +01:00
c0ba7bc62e
Add guestbook link 2022-10-29 14:50:01 +01:00
a031adefda
Add tag list button to post list hero 2022-10-29 13:22:21 +01:00
394d9028ba
Fix spacing for footer icons 2022-10-24 20:45:07 +01:00
cb6aed2567
Replace drf-yasg with DRF native schema generator
I don't need anything advance. Just redirect to the swagger editor for the UI. Makes the app much simpler
2022-10-23 21:30:00 +01:00
9cfa369d56
Replace tags menu item with dashboard item 2022-10-23 20:30:17 +01:00
3b02f21f81
Use OOB to set results count and fix jumping when loading pages
This correctly centers the pagination spinner, and ensures there's only 1.
2022-10-23 18:52:39 +01:00
a70f789a8d
Add indicator to search infinite scroll 2022-10-23 18:34:32 +01:00
0971fcd8a3
Account for spaces after tags when extracting text 2022-10-21 17:46:13 +01:00
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
db6dd80385
Remove ToC from blog list page
Showing an accurate ToC is complex alongside pagination
2022-10-21 16:56:40 +01:00
214f10002c
Cache latest blog post 2022-10-21 13:20:22 +01:00