From 8533470dd83d8411a44f52cec866a0c48244e6d9 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 12 Oct 2023 18:56:49 +0000 Subject: [PATCH] Squashed 'template/pages/' changes from cc80d0c..bb42fb8 bb42fb8 Update with https://github.com/ecomplus/storefront/commit/d3229943c021a138101e0fbbf1988c3537802d0c 68798dc Update with @ecomplus/storefront-template v2.0.0-beta.244 git-subtree-dir: template/pages git-subtree-split: bb42fb831708cee7e1b921f0ff474c6df138905c --- @/layout/inc/logo.ejs | 2 +- @/meta.ejs | 4 ++++ @/scripts.ejs | 2 +- @/sections/blog.ejs | 2 +- @/sections/inc/banner.ejs | 4 ++-- @/sections/stamps.ejs | 2 +- app/index.ejs | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/@/layout/inc/logo.ejs b/@/layout/inc/logo.ejs index c8da24ae..7233fc67 100644 --- a/@/layout/inc/logo.ejs +++ b/@/layout/inc/logo.ejs @@ -1,7 +1,7 @@ <% // store logo object const logo = _.settings.logo - ? { url: _.settings.logo, alt: _.settings.name } + ? { url: (_.assetsPrefix || '') + _.settings.logo, alt: _.settings.name } : _.store.logo if (logo && logo.url) { diff --git a/@/meta.ejs b/@/meta.ejs index e437217f..7d30711e 100644 --- a/@/meta.ejs +++ b/@/meta.ejs @@ -125,6 +125,10 @@ if (pathname) { } %> + <% if (_.assetsPrefix) { %> + + + <% } %> <% if (resource) { %> diff --git a/@/scripts.ejs b/@/scripts.ejs index 7490ef69..79456d90 100644 --- a/@/scripts.ejs +++ b/@/scripts.ejs @@ -30,7 +30,7 @@ <% } %> - + <% if (Array.isArray(_.widgets) && _.widgets.length) { diff --git a/@/sections/blog.ejs b/@/sections/blog.ejs index 4bd1f204..26665160 100644 --- a/@/sections/blog.ejs +++ b/@/sections/blog.ejs @@ -24,7 +24,7 @@ if (Array.isArray(posts) && posts.length) { <% if (thumbnail) { %> <%= title %> diff --git a/@/sections/inc/banner.ejs b/@/sections/inc/banner.ejs index 66d5a724..17e87e2d 100644 --- a/@/sections/inc/banner.ejs +++ b/@/sections/inc/banner.ejs @@ -34,7 +34,7 @@ if (opt.img) { class="img-fluid" <% } else { %> class="lozad fade img-fluid" - data-iesrc="<%= opt.img.replace('.webp', '.png') %>" + data-iesrc="<%= _.assetsPrefix || '' %><%= opt.img.replace('.webp', '.png') %>" data-alt="<%= opt.alt %>" <% } %> <% if (!opt.height_auto && width) { %> @@ -57,7 +57,7 @@ if (opt.img) { <% }) %> <% if (opt.sync_load) { %> <%= opt.alt %> width="<%= width %>" diff --git a/@/sections/stamps.ejs b/@/sections/stamps.ejs index 8bcd00be..a5f1fbf5 100644 --- a/@/sections/stamps.ejs +++ b/@/sections/stamps.ejs @@ -2,7 +2,7 @@