File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed
apps/svelte.dev/src/routes/packages Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change 12
12
13
13
<article data-pubdate ={pkg .updated }>
14
14
<header >
15
- <h3 >
16
- {#if pkg .official }
17
- <!-- TODO use svelte logo -->
18
- <span data-icon =" svelte" ></span >
19
- <!-- <span class="pill official">official</span> -->
20
- {/if }
21
-
22
- <span >{pkg .name }</span >
23
- </h3 >
24
-
15
+ {#snippet title ()}
16
+ <h3 >
17
+ {#if pkg .official }
18
+ <!-- TODO use svelte logo -->
19
+ <span data-icon =" svelte" ></span >
20
+ <!-- <span class="pill official">official</span> -->
21
+ {/if }
22
+
23
+ <span >{pkg .name }</span >
24
+ </h3 >
25
+ {/ snippet }
26
+
27
+ {#if pkg .homepage }
28
+ <a
29
+ href ={pkg .homepage }
30
+ target =" _blank"
31
+ rel =" noreferrer"
32
+ aria-label =" View project homepage"
33
+ onclick ={(e ) => e .stopPropagation ()}
34
+ >
35
+ {@render title ()}
36
+ </a >
37
+ {:else }
38
+ {@render title ()}
39
+ {/if }
25
40
<span class =" updated" >
26
41
{pkg .version }
27
42
<strong title ={pkg .updated }>{ago (new Date (pkg .updated ), true )}</strong >
94
109
align-items : center ;
95
110
margin-bottom : 1rem ;
96
111
justify-content : space-between ;
97
- gap : 2 rem ;
112
+ gap : 1.5 rem ;
98
113
99
114
.updated {
100
115
display : flex ;
You can’t perform that action at this time.
0 commit comments