Commit graph

31 commits

Author SHA1 Message Date
ItsDrike 01d192db11
Fix 'render of section failed' build issue after hugo update 2024-06-05 14:58:43 +02:00
ItsDrike 1051f84462
Add site description meta tag 2023-12-10 01:06:39 +01:00
ItsDrike 6a2a77ac48
Overhaul codeblock style 2022-05-15 02:51:45 +02:00
ItsDrike b444f03185
Don't use scratchpad to pass values into partials
We previously used .Scratch which is a global scratchpad, that was later
passed over to the partial with the rest of the context. The partial
then checked if this value was set, and had a fallback if it wasn't
(default value).

This approach does work in most of the cases, however in about 5% of
runs, it fails. I assume this is due to hugo spinning up multiple
threads, and each of them is changing this global scratchpad in
arbitrary order. At some point, a thread then removed this value from
the scratchpad to reset it, but another thread already checked that this
variable does exist, and has now set the no longer available variable.

To avoid this, we can instead directly pass a custom dict, which
contains the original context (.) along with another variable, which
will hold the dateformat. This however means that we can't use the
simple syntax with a default value, and the dateformat will need to be
set each time (though technically, it could be set to nil and checked
later, but if we're already specifying it, we may as well pass in this
dateformat directly)
2022-05-14 22:26:04 +02:00
ItsDrike f3419a37b1
Redesign list layout 2022-05-11 14:38:42 +02:00
ItsDrike 75a45a192b
Format HTML everywhere 2022-05-11 14:38:20 +02:00
ItsDrike 3d3e0b0d23
Make the message variable in gandalf_forbid layout 2022-04-18 11:04:51 +02:00
ItsDrike 0283cec940
Add render-image md render hook 2022-04-18 10:51:44 +02:00
ItsDrike 32ef4d2084
Add 403 page (it has gandalf!) 2022-04-08 20:29:00 +02:00
ItsDrike 2052ca892f
Add head_extra block
- Sometiems it's nice to be able to extend the head, for cases like
  adding stylesheets, etc.
2022-04-08 20:29:00 +02:00
ItsDrike cc78f9d92c
Separate header_image to it's own partial 2021-08-27 00:06:10 +02:00
ItsDrike 1eb174479a
Fix indentation 2021-08-26 03:02:16 +02:00
ItsDrike 309df89c8c
Add list page for taxonomies (terms) 2021-08-26 03:00:49 +02:00
ItsDrike 164f1b3d53
Use simple <hr> not <hr /> 2021-08-26 02:41:39 +02:00
ItsDrike 0db48617ec
Add # anchors before headers in markup 2021-08-26 02:38:21 +02:00
ItsDrike 1385f95d7f
Indent consistently with 2 spaces 2021-08-26 02:06:40 +02:00
ItsDrike cf116ca468
Add favicon 2021-08-26 02:01:26 +02:00
ItsDrike aae39c13b3
Add content language meta 2021-08-26 01:57:57 +02:00
ItsDrike 1fe0f81e01
Improve single design 2021-08-25 19:47:37 +02:00
ItsDrike ef1800933b
Make new default listing and use original in posts 2021-08-25 19:41:15 +02:00
ItsDrike 2ab2765363
Add jquery 2021-08-25 19:36:37 +02:00
ItsDrike 4b002e6734
Add basic navbar 2021-08-25 14:54:51 +02:00
ItsDrike 5806b8fc7b
Add simple footer 2021-08-25 13:07:58 +02:00
ItsDrike 71fc71e30a
Apply some bootstrap styling 2021-08-25 11:53:41 +02:00
ItsDrike a82ab80745
Add bootstrap JS 2021-08-25 11:27:49 +02:00
ItsDrike 753f8f0e1a
Add fontawesome 2021-08-25 11:05:43 +02:00
ItsDrike 9a594f6596
Add highlight.css 2021-08-25 10:53:38 +02:00
ItsDrike d50b81cc05
Add style partial 2021-08-25 10:52:41 +02:00
ItsDrike e6db609303
Use baseof for common base HTML 2021-08-24 20:06:02 +02:00
ItsDrike 9f753226f6
Add partials 2021-08-24 19:49:26 +02:00
ItsDrike 16103599b3
Add some basic layout HTML 2021-08-24 19:10:29 +02:00