Skip to content

Commit 8cea3f6

Browse files
committed
Add support for link target in MediaSection.svelte
1 parent f8bb160 commit 8cea3f6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/components/MediaSection.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
{#if innerColumn.link}
9999
<a
100100
href={innerColumn.link}
101-
target="_blank"
102-
rel="noopener noreferrer"
101+
target={innerColumn.target || "_self"}
102+
rel={innerColumn.rel || "noopener noreferrer"}
103103
class="card-link md:grid w-full h-full items-center"
104104
>
105105
<Card

src/lib/config/data/frontpage.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,15 @@
7878
innerColumns:
7979
- icon: BsYoutube
8080
link: https://www.youtube.com/c/spyderide
81+
target: "_blank"
8182
aspect: xl:aspect-square
8283
- icon: BsBookHalf
8384
link: https://docs.spyder-ide.org
85+
target: "_blank"
8486
aspect: xl:aspect-square
8587
- icon: BsGithub
8688
link: https://github.com/spyder-ide/spyder
89+
target: "_blank"
8790
aspect: xl:aspect-square
8891
- icon: BsHeartFill
8992
link: https://www.spyder-ide.org/donate

0 commit comments

Comments
 (0)