Commit graph

347 commits

Author SHA1 Message Date
eae00318aa
Run local redis in docker
That feels like a bit less of a hack
2022-07-13 08:28:45 +01:00
310de1acf8
Add RQ 2022-07-13 08:21:06 +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
ae4e24481e
Add date group headers to blog list page 2022-07-10 18:42:16 +01:00
4e8826fd2f
Show error codes when running mypy 2022-07-10 18:39:06 +01:00
8a4d91fecb
Add an actual cache for local development 2022-07-10 17:14:10 +01:00
0a8d6556a4
Add animation to link hover 2022-07-05 09:10:20 +01:00
ef9128313d
Add a tangent block 2022-07-05 09:03:45 +01:00
e8c3ec86ae
Have animated scroll on table of contents
Animated and offset correctly with hero. Requires some extra JS to keep the height up to date.
2022-07-04 22:17:46 +01:00
664e59cf37
Ensure headings are still visible when scrolling to them 2022-07-04 20:58:51 +01:00
c526ff0d47
Define font family in CSS not HTML 2022-07-04 20:40:50 +01:00
4de9ed541b
Show tags with code font 2022-07-04 20:40:33 +01:00
b9a00e9b83
Use Fira Code for all code 2022-07-04 20:36:19 +01:00
9694ae71bc
Use fira code for code blocks 2022-07-04 20:27:08 +01:00
39f10c1c7c
Add shareon 2022-07-04 20:06:04 +01:00
d5ef68ce32
Style hero a bit more 2022-07-04 19:13:23 +01:00
88b6f4b61b
Get content based on original HTML
It can't be done post anchoring, else the '#' end up in the ToC
2022-07-04 19:00:20 +01:00
65044361a6
Only parse header tags when looking for ToC 2022-07-04 18:56:11 +01:00
ccb481726c
Optimise getting content HTML by only parsing the necessary tags 2022-07-04 18:55:18 +01:00
66ccd52b15
Don't allow H1 tags to be used
These should be for the page title only
2022-07-04 09:28:09 +01:00
bb8ef22bfd
Add tests for word count 2022-07-04 09:26:47 +01:00
60e4913e43
Add basic tests for extract_text 2022-07-04 09:21:12 +01:00
51be747103
Remove current page from part of navbar caching
We don't show the currently active page in the nav, so this isn't necessary. This also allows the cache to be shared between pages.
2022-07-03 23:13:59 +01:00
4702afd5dd
Reduce complexity trying to save computation on rendering streamfield
This replaces more custom iteration with caching, which will end up faster anyway, and is more drop-in with the new structure.

Sadly it still renders the content twice, as `get_content_html` requires access to the blocks.
2022-07-03 23:10:57 +01:00
ebfb909c98
Add missing type annotation 2022-07-03 22:00:52 +01:00
03e9da57a1
Add anchor links to headers 2022-07-01 09:25:57 +01:00
1c7917cb86
Add tests for ToC generator 2022-07-01 08:55:42 +01:00
af2dba84cd
Get table of contents from body 2022-06-30 23:27:50 +01:00
8a7dba4ca0
Use bs4 to extract plain text from HTML
It's slower, but it keeps spaces between tags, which is what we want.
2022-06-30 21:32:47 +01:00
5a90a9963f
Disable python buffering 2022-06-30 21:27:30 +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
b6c87d9583
Only load content styles on content pages 2022-06-28 22:19:28 +01:00
a0ddf1c434
Show embedded blocks full width on mobile 2022-06-28 22:14:23 +01:00
e6c8546129
Constrain images to 16:9 2022-06-28 21:59:38 +01:00
18a2f6892e
Set admin form fields on custom image model 2022-06-28 21:43:58 +01:00
f0239b40fc
Use lite-youtube-embed for YouTube embeds 2022-06-28 21:43:44 +01:00
c23c03ec33
Add custom image model 2022-06-28 18:54:11 +01:00
b8edb525dc
Ensure all blocks have paragraph spacing in between
Besides the last
2022-06-27 23:30:47 +01:00
a1d72c122a
Add code block 2022-06-27 23:29:55 +01:00
8f6dc4860b
Ensure there's always a space underneath rich text blocks
Final paragraphs don't have a bottom margin
2022-06-27 20:48:53 +01:00
72f9374c03
Add image figure block 2022-06-27 20:40:55 +01:00
38c4c695cf
Setup features for richtext 2022-06-27 19:58:08 +01:00
bda2773b3d
Ensure listing item is full width without content 2022-06-27 19:44:28 +01:00
2012b245a8
Add summary to content 2022-06-26 19:52:20 +01:00
299a6342cc
Add basic word count and reading time 2022-06-26 19:25:30 +01:00
1a8821eaa8
Add styleguide in local dev 2022-06-26 18:37:16 +01:00