@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/swifty.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daz4126/swifty",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
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 || page.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">