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 <[email protected]> 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 %>>
