New summaries
Now done right, I hope.
Summarized!
I just updated the blog again to show summaries instead of the entire post body on the main page, with it like this, I don't see myself needing to add pagination any time soon as it's compact enough. Now 100% AI-free, too, because I didn't like doing it that way before.
I kinda don't like the sheer amount of yellow in the main page now, though, with all of the titles being links, so I'll probably change that.
Reading time!
I also added a little estimation of how much time it'll take to read any particular post! I based it off an estimation that on average, a person will read 200 words per minute, and I also based it off the average word being 5 characters long, so it's a really simple function that just divides the number of characters on each post by 1000, rounds it up, and calls it a day. You'll notice that that estimation will often match up with the one on Firefox's reading mode, so I suppose I did good enough a job on that.
Syntax highlighting!
I'm making use of commonmark-highlighter to highlight code blocks on the server side now. Behold, a snippet of C!
void get_ball_click(GameState *game, Vector2 mouse_position) {
for (int i = 0; i < game->ballc; i++) {
if (CheckCollisionPointCircle(mouse_position, (Vector2){game->ballv[i].x, game->ballv[i].y}, game->ballv[i].r)) {
game->ballv[i].yspeed = -20;
game->ballv[i].xspeed += (game->ballv[i].xspeed > 0) ? 2 : -2;
game->ballv[i].r -= 3;
game->score += 1 * game->ballv[i].streak++;
}
}
}
I don't know how often I'll post about code in this blog, but a little bit of color goes a long way! :)
Atom feed!
The blog has an Atom feed you can plug into your favourite reader. Here's the address for it.