diff --git a/prettier.config.js b/prettier.config.js index 1772f15..665d185 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,4 +1,4 @@ module.exports = { - printWidth: 100, + printWidth: 120, plugins: [require("prettier-plugin-tailwindcss")], }; diff --git a/src/index.11ty.jsx b/src/index.11ty.jsx index f6f6916..ef31733 100644 --- a/src/index.11ty.jsx +++ b/src/index.11ty.jsx @@ -214,14 +214,16 @@ export async function render(data) { -
+
{data.frontpageFooterButtons.map(({ content, buttonText, buttonUrl }) => ( - + ))}
diff --git a/tsconfig.json b/tsconfig.json index e0872d5..a7361a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,9 @@ "compilerOptions": { "target": "es2021" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, "jsx": "react" /* Specify what JSX code is generated. */, - "jsxFactory": "h" /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */, + "jsxFactory": "h", + /* https://github.com/developit/vhtml/issues/31 */ + "jsxFragmentFactory": "null", "module": "commonjs" /* Specify what module code is generated. */, "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,