From cf5023445886d752b1673c93c8351455d840c80e Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Thu, 17 Mar 2022 21:06:28 +1100 Subject: [PATCH] Add structured data to head --- docusaurus.config.js | 39 +++++++++++++++++++++++++++++++++++++++ static/design | 2 +- static/robots.txt | 2 ++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 static/robots.txt diff --git a/docusaurus.config.js b/docusaurus.config.js index c573f74b..18f7622c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -13,6 +13,45 @@ const config = { favicon: "design/web/favicon.ico", organizationName: "meshtastic", projectName: "meshtastic", + ssrTemplate: ` + > + + + + + <% if (it.noIndex) { %> + + <% } %> + + <%~ it.headTags %> + <% it.metaAttributes.forEach((metaAttribute) => { %> + <%~ metaAttribute %> + <% }); %> + <% it.stylesheets.forEach((stylesheet) => { %> + + <% }); %> + <% it.scripts.forEach((script) => { %> + + <% }); %> + + > + <%~ it.preBodyTags %> +
+ <%~ it.appHtml %> +
+ <% it.scripts.forEach((script) => { %> + + <% }); %> + <%~ it.postBodyTags %> + + `, themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ { colorMode: { respectPrefersColorScheme: true, diff --git a/static/design b/static/design index b75f60a9..2c19d981 160000 --- a/static/design +++ b/static/design @@ -1 +1 @@ -Subproject commit b75f60a91abc22367ec017ab0c9eea828784a6ac +Subproject commit 2c19d98137a5461811bcddc83765a4e3699b9452 diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 00000000..6f27bb66 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file