Commit Graph

37 Commits

Author SHA1 Message Date
Jake Howard 899e97dedc
Allow protocol to be configured for spotify proxy 2023-09-21 13:33:55 +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 8c7f6b7f69
Better handle healthcheck errors 2023-08-19 13:19:42 +01:00
Jake Howard 0541f6ce22
Add healthcheck for Spotify proxy 2023-08-19 13:00:34 +01:00
Jake Howard 29bd939ae4
Replace flake8 and isort with ruff 2023-07-15 15:10:05 +01:00
Jake Howard e4a8fbd14f
Remove blank line in migrations
Keep `black` happy
2023-06-17 12:49:31 +01:00
Jake Howard 32f1360362
Reflow HTML based on updated `djlint` 2023-05-05 13:09:16 +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 b6fa67163f
Only show ToC if there are enough items 2022-10-29 14:57:12 +01:00
Jake Howard 549a48769d
Swap curlylint and djhtml with djlint 2022-10-05 14:17:00 +01:00
Jake Howard cd48ae7810
Revert "Replace spotify data cache with new cached properties"
This reverts commit a3d9fa177e.
2022-10-02 16:17:49 +01:00
Jake Howard a3d9fa177e
Replace spotify data cache with new cached properties
Also replace the update script with one which will do everything
2022-09-30 09:07:31 +01:00
Jake Howard 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
Jake Howard 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
Jake Howard 63909a31c0
Add iframe block 2022-09-08 14:31:01 +01:00
Jake Howard 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
Jake Howard 71f74251bb
Don't require code header 2022-09-06 08:58:44 +01:00
Jake Howard e21d525259
Reset migrations
During dev I made loads, but I don't need them now
2022-09-04 15:56:51 +01:00
Jake Howard 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
Jake Howard a053e27833
Use richtext for subtitle 2022-09-03 17:00:09 +01:00
Jake Howard 488369a247
Add filename and header show checkbox to code block 2022-08-31 22:30:08 +01:00
Jake Howard 3d155bb46f
Add management command to refresh caches of spotify playlists 2022-08-27 13:10:33 +01:00
Jake Howard 958a838f98
Remove accidental import
Damn auto-import!
2022-08-26 10:10:46 +01:00
Jake Howard e0d17394b8
Don't index body on spotify pages
This includes API data, of which there is a lot
2022-08-25 23:52:46 +01:00
Jake Howard 32a1486840
Ensure captions are optional 2022-08-20 18:38:28 +01:00
Jake Howard 710a4c7955
Humanize reading time 2022-08-19 17:31:40 +01:00
Jake Howard 09c4b93245
Add typed table block 2022-08-19 13:48:45 +01:00
Jake Howard 5affe274bd
Don't serialize all language options in migrations 2022-08-19 13:40:40 +01:00
Jake Howard 67c867ddd2
Put playlist link in hero 2022-08-18 14:32:58 +01:00
Jake Howard fd93df93a8
Add share links to spotify page 2022-08-18 14:31:02 +01:00
Jake Howard 29ce7efc13
Move spotify link above playlist 2022-08-18 14:30:51 +01:00
Jake Howard 8fa27e8c3c
Remove unnecessary extra template 2022-08-18 14:17:29 +01:00
Jake Howard fcf327e429
Derive more page context from spotify API 2022-08-18 14:14:46 +01:00
Jake Howard e094974f20
Make the spotify table look nicer 2022-08-18 09:25:14 +01:00
Jake Howard 55b723ba37
Cache spotify data 2022-08-18 09:21:57 +01:00
Jake Howard 872a6c0b30
Get all pages of playlist data
This also only gets the fields we need
2022-08-18 09:21:48 +01:00
Jake Howard ace30f4dbd
Add basic spotify page
It currently doesn't handle pagination, or caching
2022-08-17 22:17:32 +01:00