File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,18 @@ export const Aside = component$(() => {
13
13
return (
14
14
< ul key = { idx } class = "mb-6" >
15
15
< li >
16
- < a
17
- class = "mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
18
- href = { href }
19
- >
20
- { title }
21
- </ a >
16
+ { href ? (
17
+ < a
18
+ class = "mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
19
+ href = { href }
20
+ >
21
+ { title }
22
+ </ a >
23
+ ) : (
24
+ < span class = "mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline" >
25
+ { text }
26
+ </ span >
27
+ ) }
22
28
{ ( items || [ ] ) . map ( ( { text, href } , idx ) => (
23
29
< ul key = { idx } >
24
30
< li class = "py-1 text-black dark:text-white" >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const RouterHead = component$(() => {
28
28
< meta
29
29
name = "description"
30
30
property = "og:description"
31
- content = { head . frontmatter . description || head . frontmatter . titlen }
31
+ content = { head . frontmatter . description || head . frontmatter . title }
32
32
/>
33
33
< meta property = "og:site_name" content = { head . frontmatter . title } />
34
34
You can’t perform that action at this time.
0 commit comments