From 3a4307073189cb40beb3fa650aae8bee01ac7c5f Mon Sep 17 00:00:00 2001 From: zyl Date: Tue, 14 Jan 2025 23:04:23 -0800 Subject: [PATCH] update to use new webdog partials feature --- site/resources/blog/minecraft-classic-server.md | 10 ++++++++-- site/templates/blog/blog-image.tera | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 site/templates/blog/blog-image.tera diff --git a/site/resources/blog/minecraft-classic-server.md b/site/resources/blog/minecraft-classic-server.md index 3444f4d..ca75fe1 100644 --- a/site/resources/blog/minecraft-classic-server.md +++ b/site/resources/blog/minecraft-classic-server.md @@ -9,7 +9,10 @@ header_image_alt: Screenshot of my Minecraft classic server showing two players a while ago i was looking for something to do and my brain decided i should.. build a complete reimplementation of the minecraft server, naturally. i knew i'd never get anywhere close to finishing that project before losing steam so instead, i redirected this inspiration into [a minecraft classic server](https://github.com/zyllian/classics)! - + + at one point while changing my world format, worlds started getting sent to clients diagonally! don't remember what caused this, though. + + minecraft classic has [fairly simple networking](https://wiki.vg/Classic_Protocol) as it turns out, so building a server which vanilla classic clients can connect to isn't too bad if you know what you're doing, and with no need to stay true to the vanilla map format, you can simplify things even further! @@ -17,4 +20,7 @@ minecraft classic actually still has a decently large community around it, and w my implementation lacks basically any kind of anti-cheat and is lacking most of the community protocol extensions, but it's still pretty cool to have built it! i love working on random projects and it's nice to see one which is actually useable, even if there's [a lot to add](https://zyllian/classics/issues)! - + + screenshot of me stress testing how many players i could connect to the server :3 + + diff --git a/site/templates/blog/blog-image.tera b/site/templates/blog/blog-image.tera new file mode 100644 index 0000000..0089ca6 --- /dev/null +++ b/site/templates/blog/blog-image.tera @@ -0,0 +1,16 @@ +{% if "class" in userdata %} +{% set class = userdata.class %} +{% else %} +{% set class = "" %} +{% endif %} + +{% if "alt" in userdata %} +{% set alt = userdata.alt %} +{% else %} +{% set alt = "" %} +{% endif %} + +
+ {{alt}} + {{ page | safe }} +