docs: update ssrTemplate (#5774)

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
琚致远 2021-10-27 17:41:27 +08:00 committed by GitHub
parent 77b277399e
commit 1522c21a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -399,8 +399,11 @@ module.exports = {
<html <%~ it.htmlAttributes %>> <html <%~ it.htmlAttributes %>>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=3.0, minimum-scale=0.86"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Docusaurus v<%= it.version %>"> <meta name="generator" content="Docusaurus v<%= it.version %>">
<% if (it.noIndex) { %>
<meta name="robots" content="noindex, nofollow" />
<% } %>
<%~ it.headTags %> <%~ it.headTags %>
<% it.metaAttributes.forEach((metaAttribute) => { %> <% it.metaAttributes.forEach((metaAttribute) => { %>
<%~ metaAttribute %> <%~ metaAttribute %>
@ -412,20 +415,17 @@ module.exports = {
<link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script"> <link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
<% }); %> <% }); %>
</head> </head>
<body <%~ it.bodyAttributes %> itemscope="" itemtype="http://schema.org/Organization"> <body <%~ it.bodyAttributes %>>
<%~ it.preBodyTags %> <%~ it.preBodyTags %>
<div id="__docusaurus"> <div id="__docusaurus">
<%~ it.appHtml %> <%~ it.appHtml %>
</div> </div>
<div id="outside-docusaurus">
<span>Custom markup</span>
</div>
<% it.scripts.forEach((script) => { %> <% it.scripts.forEach((script) => { %>
<script src="<%= it.baseUrl %><%= script %>"></script> <script src="<%= it.baseUrl %><%= script %>"></script>
<% }); %> <% }); %>
<%~ it.postBodyTags %> <%~ it.postBodyTags %>
</body> </body>
</html> </html>`,
}; };
``` ```