summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-10-05 19:38:55 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-10-05 19:40:19 +0100
commit2f185ba211d3680be4481ce7f4d299d61601250d (patch)
treefb9e748799c6f4f7de7b9ff4827115a324197efe /src/components/Footer.astro
parentab5abcaac2d19c071bb073d57cd61fa57a627bb2 (diff)
Optimises images
Diffstat (limited to 'src/components/Footer.astro')
-rw-r--r--src/components/Footer.astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 40fdddb..ffb49c9 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -3,6 +3,7 @@ import translate from '$i18n/translate';
import tComponent from '$i18n/translations/components/footer';
import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
import Button from './Button.astro';
+import rssImg from '$images/rss.svg';
const locale = getLocaleFromPathOrDefault(Astro.url.pathname);
const t = translate(locale);
@@ -13,7 +14,7 @@ const t = translate(locale);
<span class="footer__rss-button__label">
{t(tComponent, { key: 'subscribe-to-rss' })}
</span>
- <img class="footer__rss-button__img" src="/images/rss.svg" />
+ <img class="footer__rss-button__img" src={rssImg.src} alt="" />
</a>
<Button classNames="footer__back-to-top" href="#top">