Commit graph

30 commits

Author SHA1 Message Date
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 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 32c391f183
Rename item-link to item-name 2022-05-11 15:36:35 +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 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 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 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 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
ItsDrike 2ab2765363
Add jquery 2021-08-25 19:36:37 +02:00
ItsDrike 4548c18688
Fix navbar toggler (make bootstrap 5 compatible) 2021-08-25 19:35:47 +02:00
ItsDrike 2d09f1b27e
Use with File 2021-08-25 14:55:07 +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 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