Improve article TOC, sticky header, and cross-language anchors #1

Merged
popovskik merged 1 commits from kristijan-dev into develop 2026-07-28 08:14:05 +00:00
Collaborator
  • Pin the site header on scroll (position: absolute -> fixed) so it no
    longer disappears when reading.
  • Redesign the desktop table-of-contents sidebar: compact spacing and fix
    the first-item clipping at 100% zoom (drop fixed-height flex centering in
    the scroll container for a flex column with max-height).
  • Add the article title above the desktop TOC so readers always know which
    article they are in.
  • Make the article TOC a site-wide standard: main.js now auto-builds the
    sidebar + sticky mobile header from each page's own h1/h2 headings, so all
    languages (EN/SI/MK) get it with no per-page HTML. Existing hand-written
    EN labels are preserved.
  • Update the URL hash to the active section while scrolling (replaceState,
    no history spam, no jump).
  • Add transliteration for readable anchors in every language: Slovenian
    diacritics and Macedonian Cyrillic map to ASCII slugs.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

- Pin the site header on scroll (position: absolute -> fixed) so it no longer disappears when reading. - Redesign the desktop table-of-contents sidebar: compact spacing and fix the first-item clipping at 100% zoom (drop fixed-height flex centering in the scroll container for a flex column with max-height). - Add the article title above the desktop TOC so readers always know which article they are in. - Make the article TOC a site-wide standard: main.js now auto-builds the sidebar + sticky mobile header from each page's own h1/h2 headings, so all languages (EN/SI/MK) get it with no per-page HTML. Existing hand-written EN labels are preserved. - Update the URL hash to the active section while scrolling (replaceState, no history spam, no jump). - Add transliteration for readable anchors in every language: Slovenian diacritics and Macedonian Cyrillic map to ASCII slugs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
popovskik added 1 commit 2026-07-27 15:48:25 +00:00
13e4c04c3e Improve article TOC, sticky header, and cross-language anchors
- Pin the site header on scroll (position: absolute -> fixed) so it no
  longer disappears when reading.
- Redesign the desktop table-of-contents sidebar: compact spacing and fix
  the first-item clipping at 100% zoom (drop fixed-height flex centering in
  the scroll container for a flex column with max-height).
- Add the article title above the desktop TOC so readers always know which
  article they are in.
- Make the article TOC a site-wide standard: main.js now auto-builds the
  sidebar + sticky mobile header from each page's own h1/h2 headings, so all
  languages (EN/SI/MK) get it with no per-page HTML. Existing hand-written
  EN labels are preserved.
- Update the URL hash to the active section while scrolling (replaceState,
  no history spam, no jump).
- Add transliteration for readable anchors in every language: Slovenian
  diacritics and Macedonian Cyrillic map to ASCII slugs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
popovskik merged commit 6c022d47d9 into develop 2026-07-28 08:14:05 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mark/msos#1
No description provided.