Skip to content

Commit

Permalink
Merge views subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 13, 2023
2 parents 57ac431 + 5fc7518 commit 129c8c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion template/pages/@/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (maintenance.active) {
})
}
</script>
<link rel="stylesheet" type="text/css" href="/storefront.css">
<link rel="stylesheet" type="text/css" href="<%= _.assetsPrefix || '' %>/storefront.css">

<%
// inject custom code
Expand Down
4 changes: 2 additions & 2 deletions template/pages/@/meta.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ if (pathname) {
<% } %>

<% if (!path.startsWith('/admin/')) { %>
<link rel="preload" href="/storefront.css" as="style">
<link rel="preload" href="<%= _.assetsPrefix || '' %>/storefront.css" as="style">
<% if (!path.startsWith('/app/')) { %>
<link rel="preload" href="/storefront.js" as="script">
<link rel="preload" href="<%= _.assetsPrefix || '' %>/storefront.js" as="script">
<% } %>
<%
Expand Down
2 changes: 1 addition & 1 deletion template/pages/@/sections/inc/banner.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (opt.img) {
>
<% sources.forEach(({ src, media, type, width, height }) => { %>
<source
srcset="<%= src %>"
srcset="<%= _.assetsPrefix || '' %><%= src %>"
media="<%- media %>"
<% if (type) { %>
type="<%- type %>"
Expand Down

0 comments on commit 129c8c8

Please sign in to comment.