refactor: ♻️ move gallery data out of content pages and into json data file
This commit is contained in:
parent
9477160d92
commit
0b9a604b92
3 changed files with 76 additions and 76 deletions
|
@ -2,28 +2,6 @@
|
|||
eleventyNavigation:
|
||||
key: Clothing
|
||||
order: 5
|
||||
gallery: [
|
||||
{
|
||||
alt: Sebin's casual outfit,
|
||||
artist: coffeerelated,
|
||||
href: https://bsky.app/profile/sulyyasprings.bsky.social
|
||||
},
|
||||
{
|
||||
alt: Sebin's cold weather outfit,
|
||||
artist: Lara Belém,
|
||||
href: https://bsky.app/profile/la-scarabie.bsky.social
|
||||
},
|
||||
{
|
||||
alt: Sebin's workout attire,
|
||||
artist: Atlas,
|
||||
href: https://twitter.com/turquoize_art
|
||||
},
|
||||
{
|
||||
alt: Sebin in his favorite boxers,
|
||||
artist: Fern,
|
||||
href: https://bsky.app/profile/thenamelesshare.bsky.social
|
||||
}
|
||||
]
|
||||
---
|
||||
|
||||
Sebin knows how to dress!
|
||||
|
@ -31,11 +9,11 @@ Sebin knows how to dress!
|
|||
<ref-gallery>
|
||||
<ref-img webc:for="ref of Array(4).keys()"
|
||||
:@src="`ref-clothes-${ref + 1}.png`"
|
||||
:@alt="$data.gallery[ref].alt"
|
||||
:@href="$data.gallery[ref].href"
|
||||
:@alt="$data.galleryClothing[ref].alt"
|
||||
:@href="$data.galleryClothing[ref].href"
|
||||
:@width="[500, 1000]"
|
||||
:@char="$data.firstName.toLowerCase()"
|
||||
:@artist="$data.gallery[ref].artist"
|
||||
:@artist="$data.galleryClothing[ref].artist"
|
||||
:@dropshadow="false"
|
||||
></ref-img>
|
||||
</ref-gallery>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue