From 97192a9f44f919e1c731d882f7117592e5c042e4 Mon Sep 17 00:00:00 2001 From: TriDiamond Date: Fri, 16 Apr 2021 02:50:09 +0800 Subject: [PATCH] Content header underline support theme gradient config (#56) --- src/views/Post.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/Post.vue b/src/views/Post.vue index ba8838a9..109ef3af 100644 --- a/src/views/Post.vue +++ b/src/views/Post.vue @@ -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" />
appStore.isMobile), + linearGradient: computed( + () => appStore.themeConfig.theme.header_gradient_css + ), handleAuthorClick, loading, post,