File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22import { isLinkMissing , normalizeLink } from " ../lib/doc-link" ;
33
44interface Props {
5- src : string ;
5+ dest : string ;
66 section? : string ;
77}
88
9- const { src , section } = Astro .props ;
9+ const { dest , section } = Astro .props ;
1010
11- const missing = await isLinkMissing (src );
12- const link = normalizeLink (src ) + (section ? " #" + section : " " );
11+ const missing = await isLinkMissing (dest );
12+ const link = normalizeLink (dest ) + (section ? " #" + section : " " );
1313---
1414
1515{
1616 missing ? (
17- <span class = " doc-link missing" title = { ` ${src } (missing) ` } >
17+ <span class = " doc-link missing" title = { ` ${dest } (missing) ` } >
1818 <slot />
1919 </span >
2020 ) : (
21- <a class = " doc-link" href = { link } title = { src } >
21+ <a class = " doc-link" href = { link } title = { dest } >
2222 <slot />
2323 </a >
2424 )
You can’t perform that action at this time.
0 commit comments