Skip to content

Commit

Permalink
feat: add option to hide sideBar navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
etabakov committed Feb 23, 2018
1 parent bdf00ce commit 1cb6d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build/_config_vuejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ source: ./
# Release date in the format of: YYYY-MM-DD
release_date: "2016-11-16"

sideBarHidden: "hidden"

## The product name
productName: "NativeScript"

Expand Down
4 changes: 2 additions & 2 deletions build/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="Section -pt7 -pb7">
<div class="container">
<div id="page-inner-content" class="row">
<div id="page-nav" class="col-3 -mt1 -xl-col-4 -l-col-4 -m-col-12 -m-mb4">
<div id="page-nav" class="col-3 -mt1 -xl-col-4 -l-col-4 -m-col-12 -m-mb4" {{site.sideBarHidden}}>
<div id="page-tree" class="-bg-lightgray -pt3 -pb3 -pl2 -pr2"></div>
<script>
$("#page-tree").kendoTreeView({
Expand All @@ -30,7 +30,7 @@
</script>
</div>

<div id="page-article" class="col-9 -xl-col-8 -l-col-8 -m-col-12">
<div id="page-article" class="{% unless site.sideBarHidden %} col-9 -xl-col-8 -l-col-8 {% endunless %} -m-col-12">
{% include improvethis.html %}
<article>
{{ content }}
Expand Down

0 comments on commit 1cb6d10

Please sign in to comment.