Static blog on Astro + GitHub Pages with interactive GLSL shaders, C++ WASM apps and search.
- Markdown/MDX articles with images, video, syntax highlighting
- Interactive GLSL shaders (edit code β live result)
- C++ apps via WebAssembly (ImGui + SDL2 + Emscripten)
- Site search (Pagefind)
- Multilingual (EN / RU)
npm install
npm run devSite available at http://localhost:4321/
npm run build # Full build (WASM + Astro + Pagefind)
npm run preview # Preview built site# Include demo article
INCLUDE_DEMO=true npm run buildC++ β WASM compilation requires Emscripten:
# Install emsdk
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk && ./emsdk install latest && ./emsdk activate latest
source ./emsdk_env.sh
# Build WASM apps
npm run build:wasmIf emcc is not found, WASM build is skipped without error. In CI (GitHub Actions) Emscripten is installed automatically.
src/
βββ pages/
β βββ index.astro # Redirect β /en/
β βββ [lang]/ # Dynamic routes for en and ru
β βββ index.astro # Home (mixed feed of all content)
β βββ about.astro # About page
β βββ articles/
β β βββ index.astro # Article listing
β β βββ [slug].astro # Individual article
β βββ etudes/
β β βββ index.astro
β β βββ [slug].astro
β βββ portfolio/
β βββ index.astro
β βββ [slug].astro
βββ content/ # Astro Content Collections
β βββ config.ts # Zod schemas for all collections
β βββ articles/
β β βββ en/ # English articles (.mdx)
β β βββ ru/ # Russian articles (.mdx)
β βββ etudes/
β β βββ en/
β β βββ ru/
β βββ portfolio/
β βββ en/
β βββ ru/
βββ layouts/
β βββ Base.astro # Base layout (head, body structure)
βββ components/
β βββ SiteHeader.astro # Top navigation bar
β βββ NavSidebar.astro # Left sidebar navigation
β βββ SiteFooter.astro # Footer
β βββ MixedFeed.astro # Home page feed (all content types)
β βββ PostList.astro # Listing page post list
β βββ AboutEn.astro # About page content (English)
β βββ AboutRu.astro # About page content (Russian)
β βββ ShaderEditor.astro # Interactive GLSL editor
β βββ VideoEmbed.astro # YouTube embed
β βββ WasmApp.astro # WASM app embed (iframe)
βββ styles/
β βββ global.css # Global styles
βββ i18n.ts # UI translations
wasm-apps/
βββ build.sh # Build script for all WASM apps
βββ imgui-demo/
βββ main.cpp # ImGui demo app
βββ shell.html # Emscripten HTML shell
public/wasm/ # Compiled WASM files (generated)
src/includePost.ts # INCLUDE_DEMO
.github/workflows/deploy.yml # Auto-deploy to GitHub Pages
Articles are .mdx files in src/content/articles/{lang}/:
src/content/articles/en/my-article.mdx
src/content/articles/ru/my-article.mdx---
title: "Article title"
date: "2026-03-06"
summary: "Short description shown in listings."
---No layout field needed β it is applied automatically.
Standard Markdown + components:
import ShaderEditor from "../../../components/ShaderEditor.astro";
import VideoEmbed from "../../../components/VideoEmbed.astro";
import WasmApp from "../../../components/WasmApp.astro";
## Text
Text with **formatting** and `code`.
## Image

## Video
<VideoEmbed src="https://www.youtube.com/watch?v=..." title="Title" />
## Shader
<ShaderEditor title="My shader" fragment={`precision mediump float;
uniform float u_time;
uniform vec2 u_resolution;
void main() {
vec2 st = gl_FragCoord.xy / u_resolution;
gl_FragColor = vec4(st, 0.5 + 0.5 * sin(u_time), 1.0);
}`} />
## WASM app
<WasmApp src="/wasm/my-app/index.html" title="My app" height="450px" />Articles appear automatically on the home page and the /en/articles/ listing β no need to edit any index file.
The same structure applies to etudes (src/content/etudes/) and portfolio (src/content/portfolio/).
- Create
wasm-apps/my-app/withmain.cpp - Add compilation to
wasm-apps/build.sh - Output goes to
public/wasm/my-app/ - Embed in article:
<WasmApp src="/wasm/my-app/index.html" />
- Create a GitHub repository
- In Settings β Pages β Source select "GitHub Actions"
- Update
siteinastro.config.mjsto your URL - Push to
mainβ deploy happens automatically
- Add locale to
astro.config.mjsβi18n.locales - Add translations to
src/i18n.ts - Add content directories:
src/content/articles/{lang}/,src/content/etudes/{lang}/,src/content/portfolio/{lang}/ - Add
{ params: { lang: "..." } }togetStaticPaths()in all[lang]/*.astroand[lang]/**/index.astrofiles - Create
src/components/About{Lang}.astroand updatesrc/pages/[lang]/about.astro