File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
content/project/2024/12-09-hackernews-new-jobs Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ semantic release, conventional commits
51
51
52
52
// tailwind 4
53
53
git checkout feat / tailwind4 - v2
54
+ ----------
55
+ astro markdown link in new tab
54
56
```
55
57
56
58
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const linkVariants = cva('link-default', {
11
11
' no-underline' : ' link-no-underline' ,
12
12
' link-heading' : ' link-heading' ,
13
13
' link-nav' : ' link-nav' ,
14
+ ' link-markdown' : ' link-markdown' ,
14
15
},
15
16
disabled: { true: ' link-disabled' },
16
17
},
@@ -27,5 +28,7 @@ const Element = disabled ? 'span' : 'a';
27
28
---
28
29
29
30
<Element class ={ linkVariants ({ variant , disabled , className })} {... props }>
30
- <slot />
31
+ <slot >
32
+ { props .href }
33
+ </slot >
31
34
</Element >
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ publishDate: 2024-12-09
7
7
---
8
8
9
9
import { Image } from ' astro:assets' ;
10
+ import Link from ' ../../../../components/Link.astro' ;
10
11
import { IMAGE_SIZES } from ' ../../../../constants/image' ;
11
12
import HackerNewsNewJobsImage from ' ../../../../content/project/2024/12-09-hackernews-new-jobs/_images/hackernews-new-jobs.png' ;
12
13
@@ -26,6 +27,6 @@ Amet tempor ut incididunt in fugiat nisi aute pariatur adipisicing ipsum eiusmod
26
27
27
28
## Links
28
29
29
- - Demo: https://hackernews-new-jobs.arm1.nemanjamitic.com
30
- - Repository: https://github.com/nemanjam/hn-new-jobs
30
+ - Demo: < Link href = " https://hackernews-new-jobs.arm1.nemanjamitic.com" variant = " link-markdown " target = " _blank " title = " HackerNews new jobs demo " />
31
+ - Repository: < Link href = " https://github.com/nemanjam/hn-new-jobs" variant = " link-markdown " target = " _blank " title = " HackerNews new jobs repository " />
31
32
Original file line number Diff line number Diff line change 4
4
@apply text-links no-underline;
5
5
}
6
6
7
+ .link-markdown {
8
+ @apply text-headings underline;
9
+ }
10
+
7
11
.link {
8
12
@apply hover:text-links-hover hover:underline;
9
13
@apply focus:text-links-hover focus:underline;
You can’t perform that action at this time.
0 commit comments