Skip to content

Commit 35080eb

Browse files
vorushinclaude
andcommitted
Add sitemap, robots.txt, 404 page; fix ru/ lang attribute; update CLAUDE.md
- Add jekyll-sitemap plugin for auto-generated sitemap.xml - Add robots.txt pointing to sitemap - Add minimal 404.html page for GitHub Pages - Fix ru/index.html to render <html lang="ru"> instead of lang="en" - Make default.html use page.lang for dynamic lang attribute - Update CLAUDE.md to reflect current font stack and new SEO setup Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 4362fc5 commit 35080eb

File tree

7 files changed

+33
-3
lines changed

7 files changed

+33
-3
lines changed

404.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: "404"
4+
permalink: /404.html
5+
---
6+
<div style="text-align: center; padding: 4rem 0;">
7+
<h1 style="font-size: 3rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem;">404</h1>
8+
<p style="color: var(--text-secondary);">This page doesn't exist.</p>
9+
<p><a href="/">Back to homepage</a></p>
10+
</div>

CLAUDE.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,20 @@ Use `<!--more-->` separator for homepage excerpts.
5656
- Precomputed simulation states, then animated with `requestAnimationFrame`
5757
- Link traffic split into CW/CCW arrays; pills show "A + B" format; headers show CW/CCW breakdown
5858
- Finish stats Y positions must match Hop stats Y positions (both at `CY + 30 * S` and `CY + 50 * S`) to avoid visual jumps
59-
- Play/Pause and Reset controls
59+
- Play/Pause and Reset controls: buttons use `<span class="btn-icon">` + `<span class="btn-label">` structure; label hides on narrow viewports (<540px) leaving icon-only buttons
60+
- Header text: op name in teal `#0d9488` (22px semibold), state text in warm gray `#78716c` (20px regular)
6061

6162
Include in posts via `{% include diagram-name.html %}`.
6263

6364
### Styling
6465

65-
`css/main.css` — custom theme with CSS variables, dark mode support (`prefers-color-scheme: dark`), Bootstrap 5.3 for layout. Fonts: Inter (body), Roboto Mono (code). Canvas diagrams use IBM Plex Sans/Mono independently. Diagram containers have `max-width: 600px` set in main.css.
66+
`css/main.css` — custom theme with CSS variables, dark mode support (`prefers-color-scheme: dark`), Bootstrap 5.3 for layout. Fonts: Iowan Old Style BT/Georgia (body serif), Space Grotesk (UI sans — navbar, footer, dates, TOC, diagram canvas text), Roboto Mono (code, diagram buttons). Space Grotesk and Roboto Mono loaded from Google Fonts. Diagram containers have `max-width: 600px` set in main.css.
67+
68+
### SEO & Metadata
69+
70+
- `jekyll-seo-tag` generates `<title>`, Open Graph, and Twitter Card meta tags
71+
- `jekyll-sitemap` auto-generates `sitemap.xml`
72+
- `robots.txt` points to the sitemap
73+
- Default `og:image` set to `/apple-touch-icon.png` via front matter defaults in `_config.yml`
74+
- Favicons: `/img/favicon.ico`, `/favicon-32x32.png`, `/favicon-16x16.png`, `/apple-touch-icon.png`
75+
- `404.html` provides a custom not-found page for GitHub Pages

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ gem "jekyll", "~> 4.3"
55
group :jekyll_plugins do
66
gem "jekyll-seo-tag"
77
gem "jekyll-paginate"
8+
gem "jekyll-sitemap"
89
end

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ lang: en
2525
plugins:
2626
- jekyll-seo-tag
2727
- jekyll-paginate
28+
- jekyll-sitemap
2829

2930
# Defaults
31+
# Posts default to lang: ru for legacy Russian archive; English posts override with lang: en
3032
defaults:
3133
- scope:
3234
path: ""

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
33

44
<head>
55
{% include head.html %}

robots.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
---
3+
User-agent: *
4+
Allow: /
5+
6+
Sitemap: {{ site.url }}/sitemap.xml

ru/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: default
33
title: Архив постов на русском
4+
lang: ru
45
---
56
<h1 class="mb-4">Архив постов на русском</h1>
67

0 commit comments

Comments
 (0)