@daz4126/swifty 1.12.1 → 1.12.2
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/swifty.js +1 -1
package/package.json
CHANGED
package/swifty.js
CHANGED
|
@@ -195,7 +195,7 @@ const applyLayout = async (layoutContent, config) => {
|
|
|
195
195
|
|
|
196
196
|
// Utility: Apply layout and wrap content in a Turbo Frame
|
|
197
197
|
const applyLayoutAndWrapContent = async (page,content) => {
|
|
198
|
-
const layoutContent = await getLayout(page.data.layout !== undefined ? page.data.layout
|
|
198
|
+
const layoutContent = await getLayout(page.data.layout !== undefined ? page.data.layout : page.layout);
|
|
199
199
|
const [beforeLayout, afterLayout] = await applyLayout(layoutContent, page);
|
|
200
200
|
return `
|
|
201
201
|
<turbo-frame id="content">
|