mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-07 13:22:26 +02:00
docs: update ssrTemplate (#5774)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
77b277399e
commit
1522c21a79
1 changed files with 6 additions and 6 deletions
|
@ -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>`,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue