Commit graph

873 commits

Author SHA1 Message Date
71c08f5568
Use class name rather than database name for body classes
This avoids duplication and makes the classnames a bit shorter, and more sane.
2022-07-25 19:30:47 +01:00
ba7a2d7b4d
Use SVG versions of mermaid diagrams for better quality 2022-07-20 23:31:02 +01:00
78b310faa3
Scroll to element in hash after hero height is set
There's a bit of manually re-implementing what browsers already do here, but it's very simple and works very nicely
2022-07-20 22:57:50 +01:00
38cc5182ca
Add a shadow to the hero when it scrolls
Sadly done in JS, but it's much much easier this way
2022-07-20 22:39:35 +01:00
fafc0e8828
Simplify navbar styling and disable variants 2022-07-20 21:54:09 +01:00
261d35385f
Use dark rather than black 2022-07-20 21:42:58 +01:00
f5cb783f8d
Set base theme colours 2022-07-20 21:42:08 +01:00
10094515da
Add the basics of a contact page with accounts list 2022-07-20 09:15:20 +01:00
9b7a2b2c21
Move accounts snippet to new contact app 2022-07-20 09:15:12 +01:00
675d3f38b9
Ensure tags menu item works when the list page doesn't exist 2022-07-20 08:41:40 +01:00
85afe6c41b
Add alt tags to image blocks 2022-07-16 16:04:06 +01:00
c110318608
Test all pages have templates 2022-07-16 15:50:01 +01:00
6b96688adb
Add the concept of post collections
For things which are a fixed series (eg yearly repeats)
2022-07-16 15:45:57 +01:00
2ae8ec7045
Optimise getting blog posts for a tag
Because we can guarantee there's only 1 `BlogListPage`, the query becomes much simpler
2022-07-16 10:44:48 +01:00
dddecae190
Show content on listing pages 2022-07-16 10:39:20 +01:00
3306ec4e5a
Fix resolving parent pages
The order is actually correct for what we want. Also update the type
2022-07-16 10:29:47 +01:00
690095ea52
Replace tag snippets with full pages
Makes the page tree a bit more messy, but is much more versatile and means there are fewer hacks in the code to make snippets act like pages in the tree.
2022-07-16 10:29:01 +01:00
153b2c0c59
Revert "Add an actual cache for local development"
This reverts commit 8a4d91fecb.

This actually makes things very annoying
2022-07-16 01:18:45 +01:00
1326214c8f
Rename namespace for static pygments URL 2022-07-16 01:13:48 +01:00
78660500a5
Add tag filtered view to blog list 2022-07-16 00:56:20 +01:00
781870321e
Add snippet links to plain and simple rich text fields 2022-07-15 10:12:15 +01:00
8b16d94bc8
Add tests for steamfield and richtext lists 2022-07-15 10:11:02 +01:00
feba307de7
Add mermaid embed 2022-07-15 10:10:37 +01:00
1acaca3ce6
Add social accounts snippet 2022-07-14 22:03:24 +01:00
72ac1bc1da
Add reusable referral links 2022-07-14 22:02:01 +01:00
0e5f60b4eb
Add management commands to update unsplash photos every x days 2022-07-13 08:55:14 +01:00
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