Hello, world

#meta

This is the first note. Delete it whenever.

Every post is a Markdown file in src/content/blog/, one folder per post:

src/content/blog/hello-world/
  index.md      <- this file
  diagram.png   <- images live next to the post

Images are referenced with a relative path and get optimized at build time:

A gradient test image

So you can drop a 4 MB photo straight from your phone next to index.md and stop worrying about it.

Code

Inline code looks like gpio_set_level(GPIO_NUM_2, 1) and blocks look like this:

#include "driver/gpio.h"

void app_main(void) {
    gpio_set_direction(GPIO_NUM_2, GPIO_MODE_OUTPUT);
    while (true) {
        gpio_set_level(GPIO_NUM_2, 1);
        vTaskDelay(pdMS_TO_TICKS(500));
        gpio_set_level(GPIO_NUM_2, 0);
        vTaskDelay(pdMS_TO_TICKS(500));
    }
}

Blockquotes, bold, italics, links, lists, tables — all the basics work.

To publish: npm run build, then copy dist/ to the server.