File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 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$(() => {
1313 return (
1414 < ul key = { idx } class = "mb-6" >
1515 < 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+ ) }
2228 { ( items || [ ] ) . map ( ( { text, href } , idx ) => (
2329 < ul key = { idx } >
2430 < 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$(() => {
2828 < meta
2929 name = "description"
3030 property = "og:description"
31- content = { head . frontmatter . description || head . frontmatter . titlen }
31+ content = { head . frontmatter . description || head . frontmatter . title }
3232 />
3333 < meta property = "og:site_name" content = { head . frontmatter . title } />
3434
You can’t perform that action at this time.
0 commit comments