Commit graph

67 commits

Author SHA1 Message Date
ItsDrike b795c0b517
Fix REF_NOT_FOUND build errors after hugo update 2024-06-05 15:10:03 +02:00
ItsDrike 01d192db11
Fix 'render of section failed' build issue after hugo update 2024-06-05 14:58:43 +02:00
ItsDrike 8d6976467a
Update mermaid shortcode 2023-12-10 01:09:25 +01:00
ItsDrike 4c212e8f64
Add footnotes support 2023-12-10 01:08:09 +01:00
ItsDrike 1051f84462
Add site description meta tag 2023-12-10 01:06:39 +01:00
ItsDrike eb0b427a79
Use custom notice style in favor of hugo-notice 2022-07-24 01:51:08 +02:00
ItsDrike 6c2a21f37b
Improve robots.txt 2022-06-01 20:04:23 +02:00
ItsDrike 55ea1f48f5
Use .Inner instead of .Get 'text' in span shortcode 2022-05-23 18:55:01 +02:00
ItsDrike d3f9af4560
Add shortcode for mermaid diagrams 2022-05-23 18:54:27 +02:00
ItsDrike 2eec248847
Add iframe shortcode 2022-05-23 18:54:15 +02:00
ItsDrike 900219b281
Use classes instead of ids for changelog and sources 2022-05-23 18:36:52 +02:00
ItsDrike 0ae71e3794
Use tab size of 4 in content-info 2022-05-23 18:35:18 +02:00
ItsDrike c7e49b99f2
Remove youtube shortcode in favor of hugo's built-in 2022-05-23 18:32:07 +02:00
ItsDrike aff352e513
Group inner content of pages under <article> 2022-05-23 18:28:20 +02:00
ItsDrike 70d3e26b86
Move sources and changelog to it's own partial 2022-05-23 18:24:15 +02:00
ItsDrike 8a4a518487
Add option to add changelog 2022-05-23 18:12:15 +02:00
ItsDrike 5807d180f3
Add cusom styled span shortcode 2022-05-15 13:12:03 +02:00
ItsDrike c02b9e6498
Don't globally override table style, use shortcode 2022-05-15 13:11:03 +02:00
ItsDrike 6a2a77ac48
Overhaul codeblock style 2022-05-15 02:51:45 +02:00
ItsDrike 7f84716ce8
Fix content template 2022-05-14 23:11:39 +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 7fc9d978dd
Add copy button to all codeblocks 2022-05-14 20:27:10 +02:00
ItsDrike 32c391f183
Rename item-link to item-name 2022-05-11 15:36:35 +02:00
ItsDrike 323d319362
Improve TODO comment 2022-05-11 14:38:42 +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 61b1cffd15
Show revision date if added 2022-04-12 12:35:34 +02:00
ItsDrike c1b1f017a9
Add comment 2022-04-12 11:25:28 +02:00
ItsDrike 319c9b0da3
Make it possible to easily add sources 2022-04-12 11:25:06 +02:00
ItsDrike 27d31ce605
Add link to privacy policy to footer 2022-04-08 20:29:00 +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 477ed92086
Add home page template and content 2021-08-27 00:37:22 +02:00
ItsDrike cc78f9d92c
Separate header_image to it's own partial 2021-08-27 00:06:10 +02:00
ItsDrike fb21e83c33
Support local resource images in content 2021-08-27 00:01:44 +02:00
ItsDrike fa18460df0
Add support for images in content 2021-08-27 00:01:05 +02:00
ItsDrike 60849fcdc6
Only show headers when there are 4 or more of them 2021-08-27 00:00:15 +02:00
ItsDrike 6e888ed235
Add youtube shortcode 2021-08-26 12:36:39 +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 e56ea01985
Make content float on the left side 2021-08-26 01:13:24 +02:00
ItsDrike f4701e7fa6
Improve content details design 2021-08-26 01:07:17 +02:00
ItsDrike 8b599058c6
Fix whitespace between icons 2021-08-26 00:45:05 +02:00