File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 66 import {Icon } from ' $lib/components/ui/icon' ;
77 import {cn } from ' $lib/utils' ;
88 import type {Snippet } from ' svelte' ;
9- import {Link } from ' svelte-routing' ;
109 let {
1110 entry,
1211 showLinks = false ,
7978
8079{#snippet senseNumber (index : number )}
8180 {#if showLinks }
82- <Link to ={` ${location .href .replace (location .hash , ' ' )}#sense${index + 1 } ` } class =" font-bold group/sense underline" >
81+ <a href ={` ${location .href .replace (location .hash , ' ' )}#sense${index + 1 } ` } class =" font-bold group/sense underline" >
8382 <Icon icon ="i-mdi-link" class ={cn (
8483 ' opacity-0' ,
8584 ' group-hover/sense:opacity-100 group-hover/sense:visible transition-all' ,
8685 ' size-4 align-sub'
8786 )}/><span class ="ml-[2px]" >{index + 1 }</span >
88- </Link >
87+ </a >
8988 {:else }
9089 <span class ="font-bold" >{index + 1 }</span >
9190 {/if }
You can’t perform that action at this time.
0 commit comments