@gaulatti/giorgia 0.1.96 → 0.1.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,6 +7,7 @@ Server-side renderer and Handlebars template bundle for ModoItaliano pages.
7
7
  - Renders canonical content documents into HTML
8
8
  - Supports `article-page`, `homepage`, `category-page`, `live-story`, and `404` layouts
9
9
  - Ships reusable Handlebars templates, partial dependency metadata, and compiled CSS
10
+ - Preserves the masthead, footer, and radio player across same-language internal navigation
10
11
 
11
12
  ## Installation
12
13
 
@@ -39,6 +40,12 @@ npm run build
39
40
  npm run storybook
40
41
  ```
41
42
 
43
+ ## Persistent navigation
44
+
45
+ Standard page layouts replace only `#page-content` during same-origin, same-language navigation. The masthead, footer, and bottom radio player stay mounted, so an active stream continues without interruption. Each persistent shell surface has its own static View Transition identity, preventing the visible player bar from being redrawn with page content. Swup updates the URL, browser history, document metadata, focus announcement, and scroll position; native View Transitions animate the content where supported, with a CSS fallback and reduced-motion handling.
46
+
47
+ Page-local scripts that must run after a content swap use `data-swup-reload-script`. Initializers shared by several layouts expose an idempotent `window.__brokaw*` function and are called after each page view. Search and media pagination tag their query-only history entries so back/forward navigation can distinguish local state changes from page changes. Cross-language links and pages without the standard content boundary use a normal document navigation.
48
+
42
49
  ## Publish flow
43
50
 
44
51
  - CI validates typecheck, unit tests, and package build on pull requests and `main` pushes.