Commit graph

32 commits

Author SHA1 Message Date
f3b248110e
Hide updated date when creating unsplash photos 2022-09-15 08:19:22 +01:00
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
71f74251bb
Don't require code header 2022-09-06 08:58:44 +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
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
7fff13f0ab
Add lightbox for content images 2022-09-02 17:18:40 +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
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
6f073c6cfc
Update module name
This will handle more than just URLs
2022-08-28 20:30:50 +01:00
ac46c0ae0b
Add start of simple module to help with caching singleton URLs 2022-08-28 17:42:21 +01:00
309955a052
Load images async 2022-08-25 22:42:33 +01:00
32a1486840
Ensure captions are optional 2022-08-20 18:38:28 +01:00
900aaad850
Simplify caching for pygments styles 2022-08-20 18:32:25 +01:00
24d92f4760
Use smaller image URL for listing 2022-08-19 14:33:57 +01:00
5affe274bd
Don't serialize all language options in migrations 2022-08-19 13:40:40 +01:00
ba7a2d7b4d
Use SVG versions of mermaid diagrams for better quality 2022-07-20 23:31:02 +01:00
85afe6c41b
Add alt tags to image blocks 2022-07-16 16:04:06 +01:00
1326214c8f
Rename namespace for static pygments URL 2022-07-16 01:13:48 +01:00
feba307de7
Add mermaid embed 2022-07-15 10:10:37 +01:00
0e5f60b4eb
Add management commands to update unsplash photos every x days 2022-07-13 08:55:14 +01:00
70b08137bc
Add data updated date to unsplash model
Used later on for an update script
2022-07-12 22:53:50 +01:00
b155ec2e9b
Allow unsplash images to be used as hero images 2022-07-12 22:45:50 +01:00
a229bb530a
Prevent edit and add thumbnail to chooser and list 2022-07-12 15:48:40 +01:00
72dc3cc4ea
Add chooser for unsplash photos
It doesn't show images, yet
2022-07-12 15:14:27 +01:00
382853a384
Add unsplash model for storing images
Not wired in quite yet
2022-07-12 09:32:05 +01:00
2b39fb1b9a
Bake pygments version into style URL
It's a hack, but it does work
2022-06-28 23:04:52 +01:00
a1d72c122a
Add code block 2022-06-27 23:29:55 +01:00