mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
Add structured data to head
This commit is contained in:
parent
8d9eb4d3ce
commit
cf50234458
|
@ -13,6 +13,45 @@ const config = {
|
||||||
favicon: "design/web/favicon.ico",
|
favicon: "design/web/favicon.ico",
|
||||||
organizationName: "meshtastic",
|
organizationName: "meshtastic",
|
||||||
projectName: "meshtastic",
|
projectName: "meshtastic",
|
||||||
|
ssrTemplate: `<!DOCTYPE html>
|
||||||
|
<html <%~ it.htmlAttributes %>>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="generator" content="Docusaurus v<%= it.version %>">
|
||||||
|
<% if (it.noIndex) { %>
|
||||||
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
<% } %>
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Organization",
|
||||||
|
"url": "https://meshtastic.org",
|
||||||
|
"logo": "https://meshtastic.org/design/logo/logo.svg"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%~ it.headTags %>
|
||||||
|
<% it.metaAttributes.forEach((metaAttribute) => { %>
|
||||||
|
<%~ metaAttribute %>
|
||||||
|
<% }); %>
|
||||||
|
<% it.stylesheets.forEach((stylesheet) => { %>
|
||||||
|
<link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
|
||||||
|
<% }); %>
|
||||||
|
<% it.scripts.forEach((script) => { %>
|
||||||
|
<link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
|
||||||
|
<% }); %>
|
||||||
|
</head>
|
||||||
|
<body <%~ it.bodyAttributes %>>
|
||||||
|
<%~ it.preBodyTags %>
|
||||||
|
<div id="__docusaurus">
|
||||||
|
<%~ it.appHtml %>
|
||||||
|
</div>
|
||||||
|
<% it.scripts.forEach((script) => { %>
|
||||||
|
<script src="<%= it.baseUrl %><%= script %>"></script>
|
||||||
|
<% }); %>
|
||||||
|
<%~ it.postBodyTags %>
|
||||||
|
</body>
|
||||||
|
</html>`,
|
||||||
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
|
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
|
||||||
colorMode: {
|
colorMode: {
|
||||||
respectPrefersColorScheme: true,
|
respectPrefersColorScheme: true,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b75f60a91abc22367ec017ab0c9eea828784a6ac
|
Subproject commit 2c19d98137a5461811bcddc83765a4e3699b9452
|
2
static/robots.txt
Normal file
2
static/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
Loading…
Reference in a new issue