Commit graph

20 commits

Author SHA1 Message Date
Chris Josten 1d0d1a54b1 Fix crash caused by lastIndexOf returning negative numbers
The ArticleParser would crash when a negative number was returned by
lastIndexOf, since it was casted to an unsigned integer. This unsigned
integer then was used to allocate memory, which would allocate way to
much memory, causing a MemoryException and crashing the process.
2021-10-13 14:07:27 +02:00
Chris Josten 48b95c4a13 Article: parse document separators properly
Document separators should start with a newline, followed by three
dashes, followed by a newline again.
2021-10-11 15:15:12 +02:00
Chris Josten 35d5b02b5e Refractor code
* This project now should make proper use of modules
* HTTP specific logic was extracted from app.d to http.d
* Logic for managing files in memory was moved to cache.d from watcher.d
* Added license
2021-06-22 01:37:51 +02:00
Chris Josten 7e01e575fc Fix crash on starup when syntax error in YAML 2021-03-25 20:06:47 +01:00
Chris Josten 46bea4fa58 Add more support for internationalisation, style changes 2021-03-11 17:22:40 +01:00
Chris Josten 75a4e86ea1 Use translations, fix 'old' style. 2021-03-10 18:30:32 +01:00
Chris Josten ed2926fb16 Fix crash when pages are updated and quickly removed 2020-10-03 21:50:43 +02:00
Chris Josten 791a08363a Properly wait for spawned processes to end 2020-06-29 23:51:40 +02:00
Chris Josten 76b3ca0d33 Add human readable date, keep machine readable 2020-06-28 00:43:15 +02:00
Chris Josten 9f879be71b WIP: translation (but it ain't broken) 2020-06-28 00:12:16 +02:00
Chris Josten 8d2feaa76b Make metadata more consistent 2020-06-27 16:54:06 +02:00
Chris Josten 561bcdc366 Add ability to hide posts 2020-06-27 16:48:26 +02:00
Chris Josten e3f14ee085 Fix author not being set and image layout 2020-06-26 11:49:21 +02:00
Chris Josten 503d2d1ad0 Improve page speeds
* Defer loading of highlight css
* Cache /static for up to 16 days
2020-06-25 11:20:33 +02:00
Chris Josten e73f6e9316 Ignore folders with content 2020-06-25 00:23:02 +02:00
Chris Josten 09fdfeb112 Add debug logging 2020-06-24 22:04:31 +02:00
Chris Josten acd02aea20 Refractored code and added extra comments 2020-06-24 19:57:04 +02:00
Chris Josten 99f493dec3 Restructured parts of the website 2020-06-24 17:40:20 +02:00
Chris Josten e1b43bc4c3 Added content, projects and dark mode 2020-06-24 15:53:18 +02:00
Chris Josten 4a9cfda0bd Initial commit 2020-06-24 10:08:28 +02:00