Commit graph

720 commits

Author SHA1 Message Date
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
b7163c3076
Create basic streamfield 2022-06-26 18:37:04 +01:00
1a30ce54ff
Lighten navbar items on hover 2022-06-26 17:23:58 +01:00
7676cf7166
Ensure containers don't extend beyond the viewport when holding columns 2022-06-26 17:18:40 +01:00
acfc7852b3
Disable reading time and ToC for blog list page 2022-06-26 17:00:44 +01:00
6da155409c
Remove extra defined colours
Bulma defines these for us
2022-06-26 16:57:05 +01:00
dc928a2168
Force containers to be desktop width
This also adds the ability to override bulma variables, with others defined by bulma
2022-06-26 16:56:51 +01:00
b2582dda4d
Remove forced width on dropdown 2022-06-26 15:26:54 +01:00
7ea6b8b5a8
Add a bit of spacing under content detail on hero
The `.control`is what defines the padding now
2022-06-26 15:21:25 +01:00
d37c0dfbfa
Fix scroll top button 2022-06-26 15:18:28 +01:00
d11c732ce3
Make hero image take up 50% of screen
Including navbar
2022-06-26 15:18:20 +01:00
b2df6aa7d2
Refactor content details to use tags 2022-06-26 15:13:51 +01:00
ed535626b5
Use bulma tags for tags 2022-06-26 12:55:20 +01:00
b4c5032448
Prefetch tags when listing 2022-06-26 12:55:08 +01:00
d3badf5339
Add spacing under content details in hero 2022-06-26 10:53:10 +01:00
8a8d09413e
Slightly reduce title spacing 2022-06-26 10:52:59 +01:00
206a2a7203
Add spacing between hero and content 2022-06-26 10:29:13 +01:00
83c25328e6
Add spacing between title and subtitle in hero 2022-06-26 10:25:40 +01:00
693184f7fa
Don't assume image on listing item 2022-06-26 10:06:51 +01:00
1926c73145
Add gzip middleware 2022-06-20 09:12:47 +01:00
70c9a986b4
Add elevator.js 2022-06-20 08:46:42 +01:00
6f3c7a0162
Pull reading times and word count from Python 2022-06-19 21:16:03 +01:00
a2e44a0a2e
More content details to generic location 2022-06-19 21:06:35 +01:00
ce68aa7291
Add date to blog posts 2022-06-19 21:03:05 +01:00
29673c365f
Add tagging to blog post pages 2022-06-19 20:55:37 +01:00
6600b9ccb7
Build ToC from python 2022-06-19 20:14:22 +01:00
7b5d597d34
Create blog pages 2022-06-19 19:24:29 +01:00
9769d067bb
Add link to listing image 2022-06-19 17:28:48 +01:00