Commit graph

428 commits

Author SHA1 Message Date
c56cc2f995
Correctly get lexer for language
`get_lexer_by_name` doesn't actually get the lexer by its name...
2022-09-07 14:44:39 +01:00
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
71f74251bb
Don't require code header 2022-09-06 08:58:44 +01:00
ffcb17de31
Ensure headings are light in dark mode 2022-09-06 08:57:34 +01:00
0813b80c73
Test gunicorn config in CI 2022-09-06 08:39:17 +01:00
fb453a3277
Run an additional thread so the GIL isn't sitting completely idle 2022-09-06 08:36:55 +01:00
b95506d711
Don't load analytics when logged in or preview 2022-09-06 08:24:54 +01:00
1474131771
Thin fonts on 500 page 2022-09-05 14:29:17 +01:00
0711288197
Style 500 page 2022-09-05 14:17:48 +01:00
0a136496f4
Remove caches from base template
These components are pretty efficient, and it makes content editing more
annoying.
2022-09-05 13:58:36 +01:00
c40987c14f
Add healthcheck 2022-09-05 13:35:48 +01:00
db24bb7e0a
Disable password reset 2022-09-05 13:13:01 +01:00
614f04c246
Allow easily updating packages 2022-09-05 09:18:22 +01:00
8aab42cbbc
Update django-sri to fix integrity issues 2022-09-05 09:18:14 +01:00
8805416807
Disable update check
I work for torchbox, i'll notice
2022-09-04 21:10:06 +01:00
a76b9df329
Fix 404s if there's no resolver match 2022-09-04 18:17:06 +01:00
f40681d06a
Add caching to listing feeds 2022-09-04 17:34:04 +01:00
7cd88c9fbd
Just set cache control rather than caching page content
This avoids storing tonnes of stuff in the cache, when it doesn't matter
_too_ much
2022-09-04 17:29:04 +01:00
ddb68f7d43
Ensure media is served by Django 2022-09-04 17:23:41 +01:00
79d6c1e951
Update spotify playlists in cron 2022-09-04 16:57:57 +01:00
b167cd4ca4
Set ALLOWED_HOSTS correctly based on base hostname 2022-09-04 16:52:05 +01:00
d93bc2450d
Remove sentry enviornment variable
There will be only 1
2022-09-04 16:40:59 +01:00
e21d525259
Reset migrations
During dev I made loads, but I don't need them now
2022-09-04 15:56:51 +01:00
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
210ad88a2e
Add renditions cache 2022-09-03 17:33:11 +01:00
a053e27833
Use richtext for subtitle 2022-09-03 17:00:09 +01:00
f8f0b6ce82
Add security.md file 2022-09-03 16:37:26 +01:00
6dfbb830ef
Add IE11 deterrent 2022-09-03 16:35:39 +01:00
eaa5b063f4
Use smaller, PNG image for meta image
This ensures it's not too large, but also crawlers are more likely to
support PNG than webp
2022-09-03 16:21:24 +01:00
be009dcb37
Convert all images to webp
It's so much smaller!
2022-09-03 16:15:08 +01:00
eb05588b4a
Only copy glightbox CSS
This also comes with plyr
2022-09-03 15:29:15 +01:00
8691d11a15
Only render comments in debug 2022-09-02 17:20:03 +01:00
7fff13f0ab
Add lightbox for content images 2022-09-02 17:18:40 +01:00
611e343564
Just use a simple icon field
The library has some issues, even if it is great

https://github.com/saschaludwig/django-fontawesome-6/pull/2
2022-09-02 15:29:12 +01:00
7026aca934
Add account links to footer
Putting them in the navbar is too crowded.
2022-09-02 09:28:35 +01:00
6d60cedc6f
Add comments 2022-09-02 08:27:42 +01:00
8b963d7936
Add some flake8 plugins 2022-09-01 09:01:32 +01:00
22e99502cb
Add 2FA
This should only be required in production, but we'll see how it goes.
It doesn't work quite how I expected it to.
2022-09-01 08:53:54 +01:00
54af457d8e
Add SRI 2022-09-01 08:36:39 +01:00
5d370a0712
Unify pygments stylesheet
It's less generic and less cool, but this bakes the styles for dark and
light into a single stylesheet, and deals with switching without any JS.
2022-08-31 23:02:13 +01:00
488369a247
Add filename and header show checkbox to code block 2022-08-31 22:30:08 +01:00
55f15bc974
Fix height on 404 page 2022-08-31 19:14:31 +01:00
df09ec0f38
Ensure request is passed into the singleton URL cache
This removes needing extra queries
2022-08-31 19:06:02 +01:00
25e49de081
Don't cache page bodies
They're still pretty fast to generate, and doing this breaks previews
completely
2022-08-31 18:54:09 +01:00
27dc383d17
Use relative URL for singletons
It's rare they'll be needed externally, and this way there's less to do
2022-08-31 09:16:25 +01:00
ce3690384e
Make code header a solid bar instead
This is much easier to layout, and has the benefit of being able to fit
more in.

The transform was still leaving space allocated, which looked odd
2022-08-31 09:05:32 +01:00
768223ba67
Add spacing around plusses in language dropdown
It looks so much better!
2022-08-30 22:49:05 +01:00
f3b603a82a
Add language and clipboard buttons to code blocks 2022-08-30 22:48:45 +01:00
da89510eee
Restart workers after a given number of requests 2022-08-30 21:39:11 +01:00
ca835a33b4
Run migrations on container start 2022-08-30 09:13:43 +01:00