@vojtaholik/static-kit-core 2.1.0 → 2.1.1
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/package.json +1 -1
- package/src/html-renderer.ts +5 -4
package/package.json
CHANGED
package/src/html-renderer.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { SchemaAddress } from "./schema-address.ts";
|
|
|
14
14
|
* }
|
|
15
15
|
* }
|
|
16
16
|
*/
|
|
17
|
-
export interface BlockPropsMap {}
|
|
17
|
+
export interface BlockPropsMap { }
|
|
18
18
|
|
|
19
19
|
type TypedBlockInstance = {
|
|
20
20
|
[K in keyof BlockPropsMap & string]: {
|
|
@@ -120,9 +120,10 @@ export async function renderPage(
|
|
|
120
120
|
// Update <html> attributes
|
|
121
121
|
if (node.nodeName === "html") {
|
|
122
122
|
setAttr(node, "data-page-id", page.id);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (node.nodeName === 'main' && page.density) {
|
|
126
|
+
setAttr(node, "data-density", page.density);
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
// Process regions - inject a marker that we'll replace after serialization
|