Skip to content

Commit

Permalink
Content header underline support theme gradient config (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Apr 15, 2021
1 parent c077fa1 commit 97192a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
class="post-html"
v-html="post.content"
v-scroll-spy="{ sectionSelector: 'h1, h2, h3, h4, h5, h6' }"
:style="'--main-gradient: ' + linearGradient"
/>
</template>
<div
Expand Down Expand Up @@ -279,6 +280,9 @@ export default defineComponent({
return {
isMobile: computed(() => appStore.isMobile),
linearGradient: computed(
() => appStore.themeConfig.theme.header_gradient_css
),
handleAuthorClick,
loading,
post,
Expand Down

0 comments on commit 97192a9

Please sign in to comment.