hide sidebar on handbook landing page (#3583)

This commit is contained in:
eashaw 2022-01-06 13:56:50 -06:00 committed by GitHub
parent 60bb02f954
commit 61d00ffcb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,13 +8,15 @@
<img class="maintainer-image" alt="The page maintainer's github profile picture" :src="'https://github.com/'+thisPage.meta.maintainedBy+'.png?size=200'">
<a style="margin-top: 24px;" :href="'https://github.com/fleetdm/fleet/edit/main/handbook/'+thisPage.sectionRelativeRepoPath"> Edit this page</a>
</div>
<h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4>
<div purpose="subtopics">
<ul class="p-0 m-0">
<li v-for="(subtopic, index) in subtopics" class="subtopic" :key="index">
<a :href="subtopic.url" :class="_isCurrentSection(subtopic, this.window.location) ? 'active' : 'pl-md-3'" @click="forceRender()">{{subtopic.title}}</a>
</li>
</ul>
<div v-if="!isHandbookLandingPage">
<h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4>
<div purpose="subtopics">
<ul class="p-0 m-0">
<li v-for="(subtopic, index) in subtopics" class="subtopic" :key="index">
<a :href="subtopic.url" :class="_isCurrentSection(subtopic, this.window.location) ? 'active' : 'pl-md-3'" @click="forceRender()">{{subtopic.title}}</a>
</li>
</ul>
</div>
</div>
<div class="border-bottom py-3 d-flex d-md-none"></div>
</div>
@ -65,13 +67,15 @@
<img class="maintainer-image" alt="The page maintainer's github profile picture" :src="'https://github.com/'+thisPage.meta.maintainedBy+'.png?size=200'">
<a style="margin-top: 24px;" :href="'https://github.com/fleetdm/fleet/tree/main/handbook/'+thisPage.sectionRelativeRepoPath"> Edit this page</a>
</div>
<h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4>
<div purpose="subtopics">
<ul class="p-0 m-0">
<li v-for="(subtopic, index) in subtopics" class="subtopic" :key="index">
<a :href="subtopic.url" :class="_isCurrentSection(subtopic, this.window.location) ? 'active' : 'pl-md-3'" @click="forceRender()">{{subtopic.title}}</a>
</li>
</ul>
<div v-if="!isHandbookLandingPage">
<h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4>
<div purpose="subtopics">
<ul class="p-0 m-0">
<li v-for="(subtopic, index) in subtopics" class="subtopic" :key="index">
<a :href="subtopic.url" :class="_isCurrentSection(subtopic, this.window.location) ? 'active' : 'pl-md-3'" @click="forceRender()">{{subtopic.title}}</a>
</li>
</ul>
</div>
</div>
<div class="border-bottom py-3 d-flex d-md-none"></div>
</div>