Skip to content

Commit e71ec55

Browse files
committed
More triggers for the avatar swing
1 parent a29a4d7 commit e71ec55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/layouts/Layout.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ const isActive = (path: string, exact = false) => {
111111
<span class="text-xs text-muted-foreground">/</span>
112112
<a
113113
href="/writing"
114+
data-swing-trigger
114115
class={cn(
115116
isActive("/writing") ? "text-foreground no-underline" : "link"
116117
)}>Writing</a
117118
>
118119
<span class="text-xs text-muted-foreground">/</span>
119120
<a
120121
href="/projects"
122+
data-swing-trigger
121123
class={cn(
122124
isActive("/projects") ? "text-foreground no-underline" : "link"
123125
)}>Projects</a
@@ -126,6 +128,7 @@ const isActive = (path: string, exact = false) => {
126128
<span class="text-xs text-muted-foreground">/</span>
127129
<a
128130
href="/now"
131+
data-swing-trigger
129132
class={cn(
130133
isActive("/now") ? "text-foreground no-underline" : "link"
131134
)}>Now</a

0 commit comments

Comments
 (0)