Commit graph

523 commits

Author SHA1 Message Date
518461a88f
Use wagtail's new built-in cache tags
They're good, because I wrote them
2024-01-05 15:44:45 +00:00
48e36bc5b9
Update to Wagtail 5.2 (and others) 2024-01-05 15:30:31 +00:00
53479eeea9
Update support pill title 2024-01-05 15:05:21 +00:00
5d50907ed2
Add opensearch description file
Not _that_ opensearch
2024-01-04 22:21:32 +00:00
10e8950aef
Add anchor id to shareon 2024-01-02 23:36:08 +00:00
3bafe01ad6
Add platform-agnostic anchor to comments 2024-01-02 23:31:55 +00:00
ea9416c6a0
Fix title for twitter share button 2023-12-28 21:29:18 +00:00
4b9ec96bc4
Upgrade shareon and add email share support 2023-12-28 21:28:30 +00:00
83f5c3234b
Round up reading time and simplify implementation 2023-12-28 21:19:07 +00:00
7a4aaca82c
Add posts count to tag list 2023-12-25 23:28:44 +00:00
3c66267b79
Add breadcrumbs to search results 2023-12-25 23:28:44 +00:00
b13fe49664
Exclude listing pages from search 2023-12-25 22:10:17 +00:00
1276d54972
Hide listing pages from feed 2023-12-24 22:37:18 +00:00
0edbd9a8e8
Fix feed favicon 2023-12-22 17:42:29 +00:00
e5ae66567a
Unify RSS feeds
One per section is a little much. Just use a single feed and be done with. Might help discoverability a little.
2023-12-22 17:42:29 +00:00
981d0ada4d
Fix typing issues 2023-11-29 14:35:07 +00:00
34dcf63a93
Add tags to feed 2023-11-29 14:30:13 +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
7127afbc94
Add image to RSS feed
Some readers don't support non-ico `favicon.ico` files
2023-11-29 14:04:04 +00:00
6248a0665a
Use correct view for tags and categories redirect 2023-11-01 09:20:33 +00:00
366dc6a123
Extract lite-youtube embed into wagtail-lite-youtube-embed package 2023-10-27 17:12:00 +01:00
fcbdb248fa
Add pagination controls to hero buttons 2023-10-22 16:07:04 +01:00
5d7d84249b
Show pagination stats in listing hero 2023-10-22 15:56:33 +01:00
9a8166a39e
Remove trailing question-mark 2023-10-22 15:26:28 +01:00
6b53c42f14
Correctly format meta URLs 2023-10-17 13:54:38 +01:00
520614a3c5
Move "view all" link above similar content
Easier to see
2023-10-16 21:35:58 +01:00
fc3704a97a
Add a basic scroll indicator 2023-10-15 22:29:40 +01:00
c94871008b
Make legacy redirects permanent 2023-10-07 19:58:45 +01:00
d27504d46f
Attempt to bundle some contrib static files to reduce network requests 2023-10-06 22:42:00 +01:00
8c3fe1da8b
Fall back to title for meta description 2023-10-06 22:03:10 +01:00
298010d184
Add redirects for categories page 2023-10-06 21:27:39 +01:00
158ba9cbfc
Increase page sizes 2023-10-06 21:23:32 +01:00
6b117956c0
Add page numbers to canonical tags 2023-10-06 21:19:01 +01:00
28a54e9d56
Add redirects for legacy tag URLs 2023-10-06 20:51:10 +01:00
9bc200fe9f
Never allow the search page to be indexed 2023-10-06 18:34:22 +01:00
899e97dedc
Allow protocol to be configured for spotify proxy 2023-09-21 13:33:55 +01:00
9d891cd101
Use URL as GUID
This makes changing URL links less of a pain
2023-09-06 14:16:05 +01:00
36749ceac3
Create a global requests session
This should massively cut down on the number of TCP handshakes
2023-09-04 21:48:10 +01:00
fa065648d7
Add size of enclosure to RSS feed 2023-09-04 21:39:14 +01:00
947612ab28
Flag that links are from RSS 2023-09-04 20:03:17 +01:00
29505d4a52
Handle upstream issues with mastodon 2023-09-04 19:22:06 +01:00
0931217e74
Add support pill 2023-08-29 22:19:41 +01:00
4d3d6bbc9a
Remove unsplash healthchecks
Their API is more annoying
2023-08-19 13:59:43 +01:00
8c7f6b7f69
Better handle healthcheck errors 2023-08-19 13:19:42 +01:00
e870f4b162
Add unsplash healthcheck 2023-08-19 13:19:32 +01:00
6b3f0273a1
Add Healthcheck for Linguist colours 2023-08-19 13:09:26 +01:00
0541f6ce22
Add healthcheck for Spotify proxy 2023-08-19 13:00:34 +01:00
96a6ded02e
Add dedicated favicon view 2023-07-23 15:17:58 +01:00
7105386e61
Use direct mastodon host for verification 2023-07-20 22:02:02 +01:00
c5d04240b1
Add styles to feeds
Copied from https://darekkay.com/blog/rss-styling/
2023-07-16 14:30:08 +01:00
530503d769
Add in-memory cache around linguist data
Mostly useful for local development, but should help a little in production too
2023-07-15 17:47:21 +01:00
7bf9956627
Add more attributes to all pages feed
With some defensive coding, there's no real reason why not
2023-07-15 17:45:13 +01:00
e9de06338b
Add ellipsis to summary when truncated 2023-07-15 17:43:04 +01:00
29bd939ae4
Replace flake8 and isort with ruff 2023-07-15 15:10:05 +01:00
019e0cf431
Replace humanize with hack around django built-in 2023-07-15 14:52:07 +01:00
062410803d
Add teams and webshare buttons 2023-07-15 14:40:44 +01:00
f90c25d132
Add mastodon verification link 2023-07-03 08:53:25 +01:00
a5d5f828c0
Add images to RSS feed 2023-06-26 14:27:04 +01:00
bc9bdce31d
Remove duplication on content page feed 2023-06-26 13:36:16 +01:00
c2150b66f3
Reduce cache times
This means content will be updated faster after changes
2023-06-26 13:26:28 +01:00
0ac02231ad
Add RSS link to navbar 2023-06-21 12:53:37 +01:00
85b1f05f72
Add base feed to all pages
This is listed below the page-specific feed, so hopefully that will be detected first
2023-06-21 12:53:37 +01:00
cbd1eb027b
Add "View all" button for similar content 2023-06-21 12:53:37 +01:00
8506564d89
Increase width hero images are shown at
This saves bandwidth, as upscaling them won't reduce quality too much
2023-06-17 12:49:54 +01:00
e4a8fbd14f
Remove blank line in migrations
Keep `black` happy
2023-06-17 12:49:31 +01:00
2a349d32d3
Reverse order of source tags so they load in the correct order 2023-06-17 12:41:23 +01:00
583db9382e
Add title to copy URL button 2023-06-14 20:03:38 +01:00
8ec9256c78
Ensure button links are marked as buttons 2023-06-14 19:19:10 +01:00
2024aa0ad5
Support more images for hero sizes 2023-06-14 09:13:49 +01:00
7e57f25d1b
Clean up pagination links 2023-06-13 13:55:57 +01:00
d6b4397498
Add alt to list item title 2023-06-13 13:45:17 +01:00
0917e39e40
Use picture tag to support smaller hero image on small screens 2023-06-13 09:31:45 +01:00
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