update to use new webdog partials feature

This commit is contained in:
zyl 2025-01-14 23:04:23 -08:00
parent 326301c04e
commit 3a43070731
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
2 changed files with 24 additions and 2 deletions

View file

@ -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)! 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)!
<md class="float-left w50" type="blog-image" src="cdn$2024/07/classic1.png" content="at one point while changing my world format, worlds started getting sent to clients diagonally! don't remember what caused this, though."></md> <wd-partial t="blog/blog-image.tera" class="float-left w50" src="cdn$2024/07/classic1.png">
at one point while changing my world format, worlds started getting sent to clients diagonally! don't remember what caused this, though.
</wd-partial>
<!-- <md class="float-left w50" type="blog-image" src="cdn$2024/07/classic1.png" content="at one point while changing my world format, worlds started getting sent to clients diagonally! don't remember what caused this, though."></md> -->
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! 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)! 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)!
<md type="blog-image" src="cdn$2024/07/classic3.png" content="screenshot of me stress testing how many players i could connect to the server :3"></md> <wd-partial t="blog/blog-image.tera" src="cdn$2024/07/classic3.png">
screenshot of me stress testing how many players i could connect to the server :3
</wd-partial>
<!-- <md type="blog-image" src="cdn$2024/07/classic3.png" content="screenshot of me stress testing how many players i could connect to the server :3"></md> -->

View file

@ -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 %}
<div class="image {{class}}">
<a href="{{userdata.src}}"><img src="{{userdata.src}}" alt="{{alt}}"></a>
<span>{{ page | safe }}</span>
</div>