File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 2
2
<div id =" wrapper" :class =" pageClasses" >
3
3
<Header :class =" { 'home': isLanding }" @toggle-sidebar =" toggleSidebar" @toggle-mode =" toggleMode" />
4
4
<Hero v-if =" isLanding" />
5
- <main >< Content :class =" { 'content-block': isLanding, 'page': !isLanding } " /></main >
5
+ <main :class =" contentClasses " >< Content /></main >
6
6
<Sidebar :items =" sidebarItems" @close-sidebar =" closeSidebar" />
7
7
<Footer :class =" { 'home': isLanding }" />
8
8
43
43
},
44
44
computed: {
45
45
isLanding () {
46
- return this .$page .path === " /"
46
+ console .log (this .$page )
47
+ return this .$page .title === " Home"
47
48
},
48
49
isRelaunch () {
49
50
return this .$page .path === " /relaunch.html"
63
64
this .$localePath
64
65
)
65
66
},
67
+ contentClasses () {
68
+ return {
69
+ ' content-block' : this .isLanding ,
70
+ ' page' : ! this .isLanding
71
+ }
72
+ },
66
73
pageClasses () {
67
74
const userPageClass = this .$page .frontmatter .pageClass
68
75
return [
Original file line number Diff line number Diff line change 19
19
display none
20
20
21
21
& .has-sidebar
22
- div .page
22
+ main .page
23
23
max-width "calc(100vw - %s - 15em)" % $sidebarWidth
24
24
25
25
footer .footer
37
37
border-bottom 1px dotted $accentColorDark
38
38
39
39
#wrapper :not (.has-sidebar )
40
- div .page , footer .footer
40
+ main .page , footer .footer
41
41
margin-left auto
42
42
margin-right auto
43
43
max-width 85vw
47
47
padding-right 0
48
48
49
49
#wrapper .has-sidebar
50
- div .page
50
+ main .page
51
51
margin-left 2.75em
52
52
max-width "calc(100vw - %s - 8em)" % $sidebarWidth
53
53
67
67
display none !important
68
68
69
69
#wrapper .has-sidebar
70
- div .page , footer .footer
70
+ main .page , footer .footer
71
71
margin-left auto
72
72
margin-right auto
73
73
max-width 85vw
91
91
right 2em
92
92
width calc (100vw - 4em )
93
93
94
+ div .intro-blocks
95
+ background red
96
+
94
97
@media screen and (max-width $breakXXS)
95
98
body
96
99
font-size 16px
You can’t perform that action at this time.
0 commit comments