Commit graph

401 commits

Author SHA1 Message Date
2f396bc158
I made this 2023-06-08 13:52:26 +01:00
5bd8455c4b
Advertise colour schemes 2023-06-08 13:40:29 +01:00
64c85d4f9d
Use correct canonical URL syntax 2023-06-08 13:38:24 +01:00
c2d8ef260a
Add tests for linguist integration 2023-06-04 19:25:38 +01:00
8f5ab16891
Add display and linguist mapping for postgres 2023-06-04 18:20:21 +01:00
e0f3ab3311
Hide similar content in preview 2023-06-03 15:27:17 +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
5d4c095227
Update shareon to 2.1.0
This adds a copy url button, which I'd implemented myself in the past
2023-05-05 13:13:12 +01:00
32f1360362
Reflow HTML based on updated djlint 2023-05-05 13:09:16 +01:00
a12bbbfe8d
Remove unnecessary type comment 2023-05-05 13:01:04 +01:00
aeb683fa7a
Back arrow should be on the left 2023-05-05 12:40:22 +01:00
b620e0edcc
Add search link to 404 page 2023-05-05 12:39:39 +01:00
d52d532d81
Disable plausible on 404 and page protection pages 2023-05-05 12:29:25 +01:00
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