You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/03/21 01:54:16 UTC
[apisix-website] branch fix-ssr-template created (now 94c8bad)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a change to branch fix-ssr-template
in repository https://gitbox.apache.org/repos/asf/apisix-website.git.
at 94c8bad fix: use default ssrTemplate
This branch includes the following new commits:
new 94c8bad fix: use default ssrTemplate
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[apisix-website] 01/01: fix: use default ssrTemplate
Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch fix-ssr-template
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit 94c8bad360662379e3aff5487d34683e81dec4e4
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Mon Mar 21 09:54:07 2022 +0800
fix: use default ssrTemplate
---
website/config/ssrTemplate.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js
index 54320b5..db7b851 100644
--- a/website/config/ssrTemplate.js
+++ b/website/config/ssrTemplate.js
@@ -1,5 +1,3 @@
-const CDN_URL = 'https://raw.githubusercontent.com/apache/apisix-website/asf-site'
-
module.exports = {
ssrTemplate: `<!DOCTYPE html>
<html <%~ it.htmlAttributes %>>
@@ -20,10 +18,10 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<%~ metaAttribute %>
<% }); %>
<% it.stylesheets.forEach((stylesheet) => { %>
- <link rel="stylesheet" href="${CDN_URL}<%= it.baseUrl %><%= stylesheet %>" />
+ <link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
<% }); %>
<% it.scripts.forEach((script) => { %>
- <link rel="preload" href="${CDN_URL}<%= it.baseUrl %><%= script %>" as="script">
+ <link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
<% }); %>
</head>
<body <%~ it.bodyAttributes %>>