diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index f9b574a32..12d39925b 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,9 +1,12 @@ +const fs = require("fs"); const sidebar = require("./sidebars.js"); const releases = sidebar.docs .filter((doc) => doc.link?.slug === "releases")[0] .items.filter((release) => typeof release === "string"); +const footerEmail = fs.readFileSync("src/footer.html", { encoding: "utf-8" }); + /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: "authentik", @@ -81,6 +84,14 @@ module.exports = { }, footer: { links: [ + { + title: "Subscribe to authentik News", + items: [ + { + html: footerEmail, + }, + ], + }, { title: "Documentation", items: [ diff --git a/website/src/comparison.jsx b/website/src/components/comparison.jsx similarity index 100% rename from website/src/comparison.jsx rename to website/src/components/comparison.jsx diff --git a/website/src/footer.html b/website/src/footer.html new file mode 100644 index 000000000..8ad9080ca --- /dev/null +++ b/website/src/footer.html @@ -0,0 +1,106 @@ + + + +
+
+
+
+ * indicates required +
+
+ + + +
+
+ + +
+ + +
+
+
+
+ +
+ + + diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx index 4ccf481df..91c6b2df4 100644 --- a/website/src/pages/index.jsx +++ b/website/src/pages/index.jsx @@ -6,7 +6,7 @@ import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import useBaseUrl from "@docusaurus/useBaseUrl"; import styles from "./styles.module.css"; -import Comparison from "../comparison"; +import Comparison from "../components/comparison"; import "react-before-after-slider-component/dist/build.css"; const features = [