summaryrefslogtreecommitdiff
path: root/src/components/Scotsoun.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-10-07 07:14:46 +0100
committerGitHub <noreply@github.com>2023-10-07 07:14:46 +0100
commit6a0bd0ab3a0960cd1436190285ebe24bf8ef1f28 (patch)
tree3c1cb310d0db6e342a8e0db44046bcfe143ccb24 /src/components/Scotsoun.astro
parentc3cb0ee85b09104045e7eaf76d7d720bd9239141 (diff)
parent054d41398527550a931a8dd4ec0d9970d1caad51 (diff)
Merge pull request #9 from Sycamost/optimise-images
Images moved to /image
Diffstat (limited to 'src/components/Scotsoun.astro')
-rw-r--r--src/components/Scotsoun.astro10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/Scotsoun.astro b/src/components/Scotsoun.astro
index 2e5ecc2..594b8c9 100644
--- a/src/components/Scotsoun.astro
+++ b/src/components/Scotsoun.astro
@@ -22,16 +22,10 @@ const t = translate(locale);
<h1>{scotsoun.title}</h1>
<p class="italic">Scotsoun SSCD{scotsoun.scotsounId}</p>
{scotsoun?.subtitle && <p class="italic">{scotsoun.subtitle}</p>}
- {
- scotsoun?.author && (
- <p>
- {t(tSite, { key: 'by' })} {scotsoun.author}
- </p>
- )
- }
+ {scotsoun?.author && <p>{t(tSite, { key: 'by' }) + ' ' + scotsoun.author}</p>}
</header>
<div class="product__action-block">
- <img src={`/images/scotsoun/sscd${scotsoun.scotsounId}.jpg`} />
+ <img src={scotsoun.img.src} alt="" />
<PayPalButtons
successPageUrl={relativePath(Astro.url.pathname, `payment-success-confirmation`)}
productDescription={`SSCD${scotsoun.scotsounId} | ${scotsoun.longName}`}