Hello, world. This is the first real post on the site and a tour of the blogging system behind it.

The blog is intentionally small and file-based. Posts live beside their images, use Markdown for content, and are served through the same FastAPI and SvelteKit application as the rest of the site. That keeps writing simple while still providing validation, syntax highlighting, responsive images, scheduling, and search-friendly pages.

File-based publishing #

Each post has its own folder under content/blog/posts/. The folder contains an index.md file and any images used by the post:

content/blog/posts/hello-world/
|-- index.md
|-- cover.png
`-- images/
    |-- example-figure.png
    `-- site-icon.png

The Markdown file starts with YAML frontmatter containing the post title, slug, summary, publication date, tags, cover image, and draft state.

Tags come from a shared registry, which gives each tag a consistent label and description. The homepage supports tag filtering and pagination, while every post has a stable, readable URL such as /post/hello-world.

Posts can be prepared without making them public. Setting draft: true hides a post in production, while development mode still exposes it for preview with a draft badge.

A future published_at value schedules a post. It remains hidden until that timestamp and then becomes visible automatically. Updated posts can also provide updated_at, which appears on the page and in the article metadata.

Validation checks frontmatter, slugs, registered tags, Markdown rendering, code languages, image references, file types, file sizes, and unexpected files. Invalid posts are excluded by the backend instead of breaking every article.

Markdown features #

Posts use CommonMark with tables and strikethrough added. Each example below shows the Markdown source followed by the rendered result.

Raw HTML is disabled. Unsafe links and image paths are rejected rather than passed through to the page, which keeps the authoring format predictable and reduces the chance of accidentally publishing unsafe markup.

Text formatting #

**Bold**, *italic*, ***bold italic***, ~~strikethrough~~, and `inline code`.
A backslash shows a literal character, as in \*not italic\*.

Bold, italic, bold italic, strikethrough, and inline code. A backslash shows a literal character, as in *not italic*.

An [inline link](https://github.com/SergeyMitchenko), an autolink <https://sergeymitchenko.com>, and a [reference link][about].

[about]: /about

An inline link, an autolink https://sergeymitchenko.com, and a reference link.

Bare URLs are not converted automatically, so wrap them in angle brackets to make them clickable.

Lists #

- Unordered item
- Another item
  - Nested item

1. First step
2. Second step
3. Third step
  • Unordered item
  • Another item
    • Nested item
  1. First step
  2. Second step
  3. Third step

Blockquotes #

> The post title is already the page's main heading, so article sections begin at level two.

The post title is already the page's main heading, so article sections begin at level two.

Headings and anchors #

## Section
### Subsection
#### Detail

Headings from level two to level four get an anchor link that appears on hover. The anchors make it possible to link straight to a section, for example the SEO section. The image examples below use level four headings.

Line breaks and horizontal rules #

End a line with a backslash\
to force a line break.

---

End a line with a backslash
to force a line break.


Tables #

| Capability | Implementation |
|------------|----------------|
| Content | Markdown files with YAML frontmatter |
| Rendering | FastAPI backend with `markdown-it-py` |
| Highlighting | Pygments |
| Page delivery | Server-rendered SvelteKit |
| Discovery | Canonical URLs, structured data, and XML sitemap |
Capability Implementation
Content Markdown files with YAML frontmatter
Rendering FastAPI backend with markdown-it-py
Highlighting Pygments
Page delivery Server-rendered SvelteKit
Discovery Canonical URLs, structured data, and XML sitemap

Colons in the separator row, such as |:---:|, control column alignment.

Syntax-highlighted code #

Fenced code blocks use Pygments when a language is provided:

```python
def greet(name: str) -> str:
    return f"Hello, {name}!"
```
def greet(name: str) -> str:
    return f"Hello, {name}!"

A fence without a language renders as escaped plain text, which suits logs and configuration snippets:

```
2026-11-26 10:00:00 INFO Application started
```
2026-11-26 10:00:00 INFO Application started

Code indented by four spaces renders the same way as a fence without a language. Unknown language names are reported during validation.

Images and figures #

Images are stored inside the post folder instead of depending on an external host. Supported formats include WebP, AVIF, PNG, JPEG, and GIF. Every image requires alternative text, and publishing rejects missing files, unsupported paths, and oversized assets.

Figures #

An image on its own line becomes a figure. Its optional quoted title becomes the visible caption:

![Green checkerboard pattern](images/example-figure.png "An example figure rendered from a local post asset")
Green checkerboard pattern
An example figure rendered from a local post asset

Inline images #

An image inside a paragraph stays inline, and its optional title becomes a tooltip:

The site icon ![SergeyMitchenko site icon](images/site-icon.png "Site icon") sits inside this sentence.

The site icon SergeyMitchenko site icon sits inside this sentence.

Images load lazily and use asynchronous decoding. Cover images use a consistent 1200 by 630 aspect ratio so article cards remain stable while loading and social previews have the expected dimensions.

Search engine optimization (SEO) #

Every public page is built to be discovered and understood by search engines. Pages are server-rendered, so crawlers receive the complete article and its metadata in the initial response without running JavaScript. Each article includes:

  • A unique title and meta description
  • A canonical URL that prevents duplicate indexing
  • Open Graph and Twitter card metadata for rich link previews
  • Publication and modification dates
  • Visible author information
  • BlogPosting and breadcrumb structured data

The site also publishes robots.txt and a dynamic XML sitemap listing the homepage, About page, and every public post. Drafts and scheduled posts are left out of the sitemap. Tag filter pages are marked noindex, follow to avoid duplicate content, and private application routes such as login and KIT are marked noindex so they stay out of search results.