File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 55<script >
66export default {
77 mounted () {
8- const color = ' #fff'
9- const lineColor = ' #fff'
8+ const keyPage = this .$themeConfig .keyPage
9+ let color = ' #424242'
10+ let lineColor = ' #424242'
1011 const num = 20
12+ if (keyPage) {
13+ color = keyPage .color || color
14+ lineColor = keyPage .lineColor || lineColor
15+ }
1116
1217 const script = document .createElement (' script' )
1318 script .src = ' https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js'
@@ -107,7 +112,7 @@ export default {
107112 }
108113}
109114 </script >
110- <style lang='scss ' scoped>
115+ <style lang='stylus ' scoped>
111116#particles-oli-wrapper {
112117 position : absolute ;
113118 z-index : - 1 ;
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ export default {
7777 dateFormat (date , type ) {
7878 date = date .replace (/ -/ g ,' /' )
7979 const dateObj = new Date (date)
80- const dateObj = new Date (date)
8180 const year = dateObj .getFullYear ()
8281 const mon = dateObj .getMonth () + 1
8382 const day = dateObj .getDate ()
Original file line number Diff line number Diff line change 11{
22 "name" : " vuepress-theme-reco" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " this is a vuepress theme" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments