Skip to content

Commit ef92b0f

Browse files
committed
Merge branch 'netlify-fix'
2 parents 476c411 + 525a55e commit ef92b0f

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

docs/.vuepress/theme/Layout.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div id="wrapper" :class="pageClasses">
33
<Header :class="{ 'home': isLanding }" @toggle-sidebar="toggleSidebar" @toggle-mode="toggleMode" />
44
<Hero v-if="isLanding" />
5-
<main><Content :class="{ 'content-block': isLanding, 'page': !isLanding }" /></main>
5+
<main :class="contentClasses"><Content/></main>
66
<Sidebar :items="sidebarItems" @close-sidebar="closeSidebar" />
77
<Footer :class="{ 'home': isLanding }" />
88

@@ -43,7 +43,8 @@
4343
},
4444
computed: {
4545
isLanding() {
46-
return this.$page.path === "/"
46+
console.log(this.$page)
47+
return this.$page.title === "Home"
4748
},
4849
isRelaunch() {
4950
return this.$page.path === "/relaunch.html"
@@ -63,6 +64,12 @@
6364
this.$localePath
6465
)
6566
},
67+
contentClasses () {
68+
return {
69+
'content-block': this.isLanding,
70+
'page': !this.isLanding
71+
}
72+
},
6673
pageClasses () {
6774
const userPageClass = this.$page.frontmatter.pageClass
6875
return [

docs/.vuepress/theme/styles/responsive.styl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
display none
2020

2121
&.has-sidebar
22-
div.page
22+
main.page
2323
max-width "calc(100vw - %s - 15em)" % $sidebarWidth
2424

2525
footer.footer
@@ -37,7 +37,7 @@
3737
border-bottom 1px dotted $accentColorDark
3838

3939
#wrapper:not(.has-sidebar)
40-
div.page, footer.footer
40+
main.page, footer.footer
4141
margin-left auto
4242
margin-right auto
4343
max-width 85vw
@@ -47,7 +47,7 @@
4747
padding-right 0
4848

4949
#wrapper.has-sidebar
50-
div.page
50+
main.page
5151
margin-left 2.75em
5252
max-width "calc(100vw - %s - 8em)" % $sidebarWidth
5353

@@ -67,7 +67,7 @@
6767
display none !important
6868

6969
#wrapper.has-sidebar
70-
div.page, footer.footer
70+
main.page, footer.footer
7171
margin-left auto
7272
margin-right auto
7373
max-width 85vw
@@ -91,6 +91,9 @@
9191
right 2em
9292
width calc(100vw - 4em)
9393

94+
div.intro-blocks
95+
background red
96+
9497
@media screen and (max-width $breakXXS)
9598
body
9699
font-size 16px

0 commit comments

Comments
 (0)