forked from blek/world
1
0
Fork 0

fix the date in blog/gb-idea

This commit is contained in:
b1ek 2024-02-23 22:27:28 +10:00
parent b13fd853f3
commit b3e66670d1
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 30 additions and 0 deletions

30
content/blog/gb-idea.md Normal file
View File

@ -0,0 +1,30 @@
+++
template = 'custom/blog-post.html'
title = 'My idea about the guestbook'
description = 'The best way to create a guestbook in a static html project'
date = '2024-01-12'
slug = 'gb-idea'
year = 2024
month = 1
day = 12
lang = 'en'
[extra]
author = 'b1ek <me@blek.codes>'
+++
# In short...
You might know that my website [used to have a guestbook](https://old-1.blek.codes/guestbook) (at the moment of writing this article), and it was relatively easy to implement since the whole thing used to run on express.js and a bunch of databases.
# The problem
Thing is, the current version of the website (the one you are browsing right now) is written in [Zola](https://getzola.org), which compiles into a bunch of static .HTML files.
This is obviously good in terms of server costs and performance, but isn't very good when you need to add interactive shit like guestbooks, statistics and stuff.
I mean, I could've chosen literally any other framework when i was doing the rewrite - SvelteKit, Rust+Warp, hell, even Laravel: basically anything that supports server side HTML rendering. But i kinda want to do this one completely static.
# Possible solutions
Well, the first one and the most obvious one is to not to have a guestbook. It is pretty hard to filter out the spam and overall its kind of not worth the trouble.
However, i still want for y'all to leave a message here so im jumping to solution 2: Create a separate docker service or smth that handles POST forms and serves the data.