med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

362
active users

#templating

0 posts0 participants0 posts today

I came across the #Fail2Ban #docker image from #linuxserverio and thought to myself that it's finally time to set up Fail2Ban. I admit i never used it before and it was a bit difficult to add it to my #playbook as all of my #servers have different services and therefore different #logfile paths, but that's nothing #jinja #templating can't fix.

Now that i've got #Discord notifications for banned #IPs, it's time to work on actual #IPblocking. I also want to use the #IPComplaint and #AbuseIPDB actions as i really like the idea of reporting abuse (even though i have no idea how effective that may be).

I may also want to replace the discord #webhook with #email notifications later as that's mostly the reason i've set up a #mailserver ( #stalwart ) in the first place.

I mean, most of my services are only accessible from #tailscale or my #homenetwork, but since #Ansible makes it so much easier to apply higher standards, i just can't resist. My #homelab is changing every day and i think setting up additional #security, even though i don't need it yet, is never a bad idea.

Donno about you guys but it sure is nice not to have to try and decipher the clusterfuck-like syntax of Hugo’s Go-based templating engine anymore…

The code on the left is Kitten¹, on the right is Hugo².

Kitten’s ‘template engine’ is just JavaScript tagged template strings.

(I’m porting the Small Technology Foundation web site³ from Site.js⁴ to Kitten, and in the process from being a Hugo-based static site to a dynamic one with a nice little admin panel I’m making to make it trivially easy to add new news items, events, and videos.)

¹ kitten.small-web.org
² gohugo.io
³ small-tech.org
sitejs.org

I know everyone's into Eleventy these days but I dislike it. It reminds me of WebPack; too configuration heavy.

I always liked #ParcelJS but they took too long getting to v2 and now nobody ever talks about it.

Are there any other #staticSiteGenerator tools I should checkout?

I mainly just want #HTML #templating, but I'd like to avoid template languages like Mustache and Liquid for PTSD reasons.

Bonus points if it I can use the same files in the browser.

Which is better?

1. Until your next turn, only creatures with 3+ power may block.

2. Only creatures with 3+ power may block until your next turn.

I think folk were correct that the number mentioned needs to qualify for the next bit. But what if I swap the direction?

:kitten: Just merged an improved slots implementation to main and you can now pass CSS class lists to components. 🎉

Read more:

Slots:
codeberg.org/kitten/app#slots

Layout components:
codeberg.org/kitten/app#layout

Passing CSS class lists to components:
codeberg.org/kitten/app#layout

Named slots:
codeberg.org/kitten/app#layout

Sample project:
codeberg.org/kitten/app/src/br