From c68ca02e0c0da24098f082b3572110ef4eb8cf11 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 12 Oct 2023 18:57:38 +0000 Subject: [PATCH] Squashed 'template/pages/' changes from cc80d0cc..bb42fb83 bb42fb83 Update with https://github.com/ecomplus/storefront/commit/d3229943c021a138101e0fbbf1988c3537802d0c 68798dcf 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 c8da24ae6f..7233fc67c3 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 e437217fe6..7d30711e25 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 7490ef69f1..79456d905d 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 4bd1f20456..2666516042 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 66d5a7248f..17e87e2d22 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 8bcd00bee4..a5f1fbf562 100644 --- a/@/sections/stamps.ejs +++ b/@/sections/stamps.ejs @@ -2,7 +2,7 @@