Skip to content

Commit dfcae3f

Browse files
committed
chore: remove sticky headings for news pages for anchor links
1 parent fb018a4 commit dfcae3f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/CommonContent.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ useHead({ title: page.value?.title });
1818
<template>
1919
<article v-if="page">
2020
<category-second
21-
v-if="page?.body.value[0][0]!=='h2'"
21+
v-if="page?.body.value[0][0] !== 'h2'"
2222
:title="page?.title"
23-
:right-text="page?.date.substring(0, 10)"
24-
class="sticky top-0 z-1" />
23+
:right-text="page?.date.substring(0, 10)" />
2524
<ContentRenderer :value="page" class="heti" />
2625
</article>
2726
</template>

0 commit comments

Comments
 (0)