summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2024-01-26 16:27:34 +0000
committerGitHub <noreply@github.com>2024-01-26 16:27:34 +0000
commit08a61f7bcbbb140863b0f2c3523929bfe4076d9f (patch)
tree156ad5aec39a4c1496ff24d083155a79aa8e6e45 /src/components
parent64c5ee53a0d158b38caff3285dac008826d7ae88 (diff)
parent9b41ae7410058dbe0d0d2b8d276d96a1fe6f48e1 (diff)
Merge pull request #72 from joeacarstairs/deployment-staging
Update from staging
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LallansIssuesGallery.astro26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro
index 3e79de9..f4c8e16 100644
--- a/src/components/LallansIssuesGallery.astro
+++ b/src/components/LallansIssuesGallery.astro
@@ -10,19 +10,37 @@ const issues = (await getAllLallansIssues()).sort(issueNumberDescending);
function issueNumberDescending(issue1: LallansIssue, issue2: LallansIssue) {
return issue2.issueNumber - issue1.issueNumber;
}
+
+const mostRecentIssue = issues[0];
+const allOtherIssues = issues.slice(1);
---
-<ul class="link-gallery">
+<ul class="link-gallery link-gallery--splash-first">
+ <li>
+ <a
+ class="link-gallery__container"
+ href={`/${locale}/furthsettins/lallans/${mostRecentIssue.issueNumber}`}
+ >
+ <Image src={mostRecentIssue.img.width192} alt="" />
+ <p class="link-gallery__title">
+ Lallans {mostRecentIssue.issueNumber}
+ <br />
+ <small>{mostRecentIssue.issueName}</small>
+ </p>
+ </a>
+ </li>
+
{
- issues.map(async (issue) => (
+ allOtherIssues.map((issue) => (
<li>
<a
class="link-gallery__container"
href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`}
>
- <Image src={issue.img.width192} alt="" />
<p class="link-gallery__title">
- Lallans {issue.issueNumber} | {issue.issueName}
+ Lallans {issue.issueNumber}
+ <br />
+ <small>{issue.issueName}</small>
</p>
</a>
</li>