From 2f96346d6d9eb5e15da53ca0ed3426c5fcce99bd Mon Sep 17 00:00:00 2001 From: Leilukin Date: Mon, 5 May 2025 20:08:24 +0800 Subject: [PATCH] Convert my A Summer End's playlist component from function to partial --- src/_includes/components/aseplaylist.vto | 2 -- src/projects/playlists.md | 3 +-- src/shrines/asummersend/playlists.md | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/_includes/components/aseplaylist.vto b/src/_includes/components/aseplaylist.vto index 619254ba..efa9bd90 100644 --- a/src/_includes/components/aseplaylist.vto +++ b/src/_includes/components/aseplaylist.vto @@ -1,4 +1,3 @@ -{{ export function myASEPlaylist(intro) }} {{ imgFigure "/assets/projects/playlists/My-Dear-Summer-Lover-cover.avif", "Cover image of A Summer’s End fanmix 'My Dear Summer Lover: A Sam x Michelle Fanmix'" }} [Image description: Sam and Michelle from A Summer’s End almost kisses, with a play symbol and text on the top left corner, and the text "My Dear Summer Lover: A Sam x Michelle Fanmix" in a digital style font in front.] {{ /imgFigure }} @@ -28,4 +27,3 @@ Tracklist: [Listen on Spotify](https://open.spotify.com/playlist/3SIV7VjSKhspYwugVIQjug){.link-btn} -{{ /export }} diff --git a/src/projects/playlists.md b/src/projects/playlists.md index 942e5bf5..9a898499 100644 --- a/src/projects/playlists.md +++ b/src/projects/playlists.md @@ -7,8 +7,7 @@ eleventyNavigation: --- ## My Dear Summer Lover -{{# {{ import { myASEPlaylist } from "components/aseplaylist.vto" }} -{{ myASEPlaylist("A fanmix for the visual novel") }} #}} +{{ include "components/aseplaylist.vto" { intro: "A fanmix for the visual novel" } }} ## Mandopop LGBTQ+ Anthem [華語流行音樂同志國歌]{lang="zh"} diff --git a/src/shrines/asummersend/playlists.md b/src/shrines/asummersend/playlists.md index b19e718c..dfbea7a5 100644 --- a/src/shrines/asummersend/playlists.md +++ b/src/shrines/asummersend/playlists.md @@ -44,5 +44,4 @@ Oracle and Bone compiled this playlist as a tribute to Anita Mui, who was a majo ## My Dear Summer Lover -{{# {{ import { myASEPlaylist } from "components/aseplaylist.vto" }} -{{ myASEPlaylist("My fanmix for") }} #}} +{{ include "components/aseplaylist.vto" { intro: "My fanmix for" } }}