Commit Graph

510 Commits

Author SHA1 Message Date
Jake Howard 0edbd9a8e8
Fix feed favicon 2023-12-22 17:42:29 +00:00
Jake Howard 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
Jake Howard 981d0ada4d
Fix typing issues 2023-11-29 14:35:07 +00:00
Jake Howard 34dcf63a93
Add tags to feed 2023-11-29 14:30:13 +00:00
Jake Howard 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
Jake Howard 7127afbc94
Add image to RSS feed
Some readers don't support non-ico `favicon.ico` files
2023-11-29 14:04:04 +00:00
Jake Howard 6248a0665a
Use correct view for tags and categories redirect 2023-11-01 09:20:33 +00:00
Jake Howard 366dc6a123
Extract lite-youtube embed into `wagtail-lite-youtube-embed` package 2023-10-27 17:12:00 +01:00
Jake Howard fcbdb248fa
Add pagination controls to hero buttons 2023-10-22 16:07:04 +01:00
Jake Howard 5d7d84249b
Show pagination stats in listing hero 2023-10-22 15:56:33 +01:00
Jake Howard 9a8166a39e
Remove trailing question-mark 2023-10-22 15:26:28 +01:00
Jake Howard 6b53c42f14
Correctly format meta URLs 2023-10-17 13:54:38 +01:00
Jake Howard 520614a3c5
Move "view all" link above similar content
Easier to see
2023-10-16 21:35:58 +01:00
Jake Howard fc3704a97a
Add a basic scroll indicator 2023-10-15 22:29:40 +01:00
Jake Howard c94871008b
Make legacy redirects permanent 2023-10-07 19:58:45 +01:00
Jake Howard d27504d46f
Attempt to bundle some contrib static files to reduce network requests 2023-10-06 22:42:00 +01:00
Jake Howard 8c3fe1da8b
Fall back to title for meta description 2023-10-06 22:03:10 +01:00
Jake Howard 298010d184
Add redirects for categories page 2023-10-06 21:27:39 +01:00
Jake Howard 158ba9cbfc
Increase page sizes 2023-10-06 21:23:32 +01:00
Jake Howard 6b117956c0
Add page numbers to canonical tags 2023-10-06 21:19:01 +01:00
Jake Howard 28a54e9d56
Add redirects for legacy tag URLs 2023-10-06 20:51:10 +01:00
Jake Howard 9bc200fe9f
Never allow the search page to be indexed 2023-10-06 18:34:22 +01:00
Jake Howard 899e97dedc
Allow protocol to be configured for spotify proxy 2023-09-21 13:33:55 +01:00
Jake Howard 9d891cd101
Use URL as GUID
This makes changing URL links less of a pain
2023-09-06 14:16:05 +01:00
Jake Howard 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
Jake Howard fa065648d7
Add size of enclosure to RSS feed 2023-09-04 21:39:14 +01:00
Jake Howard 947612ab28
Flag that links are from RSS 2023-09-04 20:03:17 +01:00
Jake Howard 29505d4a52
Handle upstream issues with mastodon 2023-09-04 19:22:06 +01:00
Jake Howard 0931217e74
Add support pill 2023-08-29 22:19:41 +01:00
Jake Howard 4d3d6bbc9a
Remove unsplash healthchecks
Their API is more annoying
2023-08-19 13:59:43 +01:00
Jake Howard 8c7f6b7f69
Better handle healthcheck errors 2023-08-19 13:19:42 +01:00
Jake Howard e870f4b162
Add unsplash healthcheck 2023-08-19 13:19:32 +01:00
Jake Howard 6b3f0273a1
Add Healthcheck for Linguist colours 2023-08-19 13:09:26 +01:00
Jake Howard 0541f6ce22
Add healthcheck for Spotify proxy 2023-08-19 13:00:34 +01:00
Jake Howard 96a6ded02e
Add dedicated favicon view 2023-07-23 15:17:58 +01:00
Jake Howard 7105386e61
Use direct mastodon host for verification 2023-07-20 22:02:02 +01:00
Jake Howard c5d04240b1
Add styles to feeds
Copied from https://darekkay.com/blog/rss-styling/
2023-07-16 14:30:08 +01:00
Jake Howard 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
Jake Howard 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
Jake Howard e9de06338b
Add ellipsis to summary when truncated 2023-07-15 17:43:04 +01:00
Jake Howard 29bd939ae4
Replace flake8 and isort with ruff 2023-07-15 15:10:05 +01:00
Jake Howard 019e0cf431
Replace humanize with hack around django built-in 2023-07-15 14:52:07 +01:00
Jake Howard 062410803d
Add teams and webshare buttons 2023-07-15 14:40:44 +01:00
Jake Howard f90c25d132
Add mastodon verification link 2023-07-03 08:53:25 +01:00
Jake Howard a5d5f828c0
Add images to RSS feed 2023-06-26 14:27:04 +01:00
Jake Howard bc9bdce31d
Remove duplication on content page feed 2023-06-26 13:36:16 +01:00
Jake Howard c2150b66f3
Reduce cache times
This means content will be updated faster after changes
2023-06-26 13:26:28 +01:00
Jake Howard 0ac02231ad
Add RSS link to navbar 2023-06-21 12:53:37 +01:00
Jake Howard 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
Jake Howard cbd1eb027b
Add "View all" button for similar content 2023-06-21 12:53:37 +01:00
Jake Howard 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
Jake Howard e4a8fbd14f
Remove blank line in migrations
Keep `black` happy
2023-06-17 12:49:31 +01:00
Jake Howard 2a349d32d3
Reverse order of source tags so they load in the correct order 2023-06-17 12:41:23 +01:00
Jake Howard 583db9382e
Add title to copy URL button 2023-06-14 20:03:38 +01:00
Jake Howard 8ec9256c78
Ensure button links are marked as buttons 2023-06-14 19:19:10 +01:00
Jake Howard 2024aa0ad5
Support more images for hero sizes 2023-06-14 09:13:49 +01:00
Jake Howard 7e57f25d1b
Clean up pagination links 2023-06-13 13:55:57 +01:00
Jake Howard d6b4397498
Add alt to list item title 2023-06-13 13:45:17 +01:00
Jake Howard 0917e39e40
Use picture tag to support smaller hero image on small screens 2023-06-13 09:31:45 +01:00
Jake Howard 2f396bc158
I made this 2023-06-08 13:52:26 +01:00
Jake Howard 5bd8455c4b
Advertise colour schemes 2023-06-08 13:40:29 +01:00
Jake Howard 64c85d4f9d
Use correct canonical URL syntax 2023-06-08 13:38:24 +01:00
Jake Howard c2d8ef260a
Add tests for linguist integration 2023-06-04 19:25:38 +01:00
Jake Howard 8f5ab16891
Add display and linguist mapping for postgres 2023-06-04 18:20:21 +01:00
Jake Howard e0f3ab3311
Hide similar content in preview 2023-06-03 15:27:17 +01:00
Jake Howard e8cd4f6628
Add tests for post similarity 2023-06-02 17:39:42 +01:00
Jake Howard b7bcaeff63
Use `alias` instead of annotate for intermediary similarity values 2023-06-02 17:35:20 +01:00
Jake Howard 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
Jake Howard 6ab0ff3fa7
Add similar content based on text Trigram similarity 2023-06-02 15:33:15 +01:00
Jake Howard 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
Jake Howard 32f1360362
Reflow HTML based on updated `djlint` 2023-05-05 13:09:16 +01:00
Jake Howard a12bbbfe8d
Remove unnecessary type comment 2023-05-05 13:01:04 +01:00
Jake Howard aeb683fa7a
Back arrow should be on the left 2023-05-05 12:40:22 +01:00
Jake Howard b620e0edcc
Add search link to 404 page 2023-05-05 12:39:39 +01:00
Jake Howard d52d532d81
Disable plausible on 404 and page protection pages 2023-05-05 12:29:25 +01:00
Jake Howard d85065d914
Colour language tag using GitHub's linguist colours 2023-04-21 21:22:59 +01:00
Jake Howard e504da0bcf
Restyle code block header
This looks much nicer, and removes a DB field.
2023-04-19 21:34:38 +01:00
Jake Howard dde014860a
Unset HttpOnly for CSRF cookie 2023-04-16 16:48:58 +01:00
Jake Howard bc95a8ea21
Upgrade Django and everything else 2023-04-16 15:56:58 +01:00
Jake Howard 6342726d7c
Change footer settings to generic setting 2023-04-16 15:18:21 +01:00
Jake Howard 8b37b87a92
Don't show share buttons in preview 2023-04-16 15:05:10 +01:00
Jake Howard fbef7c61b2
Remove what's new banner 2023-04-16 15:04:59 +01:00
Jake Howard f055517cc1
Update to Wagtail 4.1 2023-04-16 15:04:51 +01:00
Jake Howard 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
Jake Howard 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
Jake Howard 8469f1db1f
Don't show comments in preview mode 2023-03-10 16:10:47 +00:00
Jake Howard 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
Jake Howard f903dfcc8b
Add redirect URL for mastodon user 2023-03-06 14:32:00 +00:00
Jake Howard 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
Jake Howard 8969ae369d
Add return types to tests 2022-11-18 08:31:43 +00:00
Jake Howard 37cf309bb0
Add activitypub well-known forwarding
Disabled until needed
2022-11-17 22:36:22 +00:00
Jake Howard d16c8d83f0
Allow setting ALLOWED_HOSTS directly 2022-11-16 14:57:33 +00:00
Jake Howard 6f6e57a0c7
Add enforce host 2022-11-16 14:31:44 +00:00
Jake Howard 66465dafe8
Index tags and boost subtitle 2022-10-31 20:59:24 +00:00
Jake Howard 1e2e488516
Add slashes to API URLs 2022-10-31 20:59:24 +00:00
Jake Howard 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
Jake Howard 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
Jake Howard 5a8116ec22
Fix default CSP 2022-10-31 09:57:49 +00:00
Jake Howard ccdc3e918e
Add types for permissions policy 2022-10-30 19:35:26 +00:00
Jake Howard 01d78a7378
Add permissions policy 2022-10-30 19:12:26 +00:00