website: prepare go vanity URL
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
39b365c6ae
commit
169e748a78
|
@ -118,4 +118,36 @@ module.exports = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
ssrTemplate: `<!DOCTYPE html>
|
||||||
|
<html <%~ it.htmlAttributes %>>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="go-import" content="goauthentik.io/api git https://github.com/goauthentik/client-go">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=3.0, minimum-scale=0.86">
|
||||||
|
<meta name="generator" content="Docusaurus v<%= it.version %>">
|
||||||
|
<%~ 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 %> itemscope="" itemtype="http://schema.org/Organization">
|
||||||
|
<%~ it.preBodyTags %>
|
||||||
|
<div id="__docusaurus">
|
||||||
|
<%~ it.appHtml %>
|
||||||
|
</div>
|
||||||
|
<div id="outside-docusaurus">
|
||||||
|
<span>Custom markup</span>
|
||||||
|
</div>
|
||||||
|
<% it.scripts.forEach((script) => { %>
|
||||||
|
<script src="<%= it.baseUrl %><%= script %>"></script>
|
||||||
|
<% }); %>
|
||||||
|
<%~ it.postBodyTags %>
|
||||||
|
</body>
|
||||||
|
</html>`
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue