Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
document sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisanthropic committed Sep 5, 2016
1 parent 52094ad commit 30b2028
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
subcategories:
- subtitle: "installation"
subhref: "/documentation/installation/"
- subtitle: "sidebar"
subhref: "/documentation/sidebar/"
- subtitle: "layouts"
subhref: "/documentation/layouts/"
- subtitle: "navigation"
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="content_container columns">
{{ content }}
</div>
{% if page.sidebar != 'false' %}
{% if page.sidebar != false %}
<aside class="small-12 large-2 columns sidebar page-content recent-posts">
{% include asides/recent_posts.html %}
</aside>
Expand Down
1 change: 0 additions & 1 deletion _layouts/gallery.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: default
sidebar: 'false'
---
<div class="masonry">
<div> {% for gallery in site.galleries %} {% if gallery.name == page.title %} {% for art in gallery.arts %}
Expand Down
1 change: 1 addition & 0 deletions _pages/contact.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: contact
title: contact
sidebar: false
permalink: "/contact/"
---
1 change: 1 addition & 0 deletions _pages/covers.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: gallery
title: covers
sidebar: false
permalink: "/covers/"
---
1 change: 1 addition & 0 deletions _pages/header-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: header-image
permalink: "/documentation/header-image/"
sidebar: false
header: /images/logo-flip.png
---
# Site-wide Header Image
Expand Down
1 change: 1 addition & 0 deletions _pages/illustration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: gallery
title: illustration
sidebar: false
permalink: "/illustration/"
---
1 change: 1 addition & 0 deletions _pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: installation
permalink: "/documentation/installation/"
sidebar: false
---
# Installation
This theme is compatible with Jekyll 2.2 Gem Themes as well as older versions of Jekyll.
Expand Down
4 changes: 4 additions & 0 deletions _pages/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: layouts
permalink: "/documentation/layouts/"
sidebar: false
---
# Custom Layouts:
You can use the following custom layouts with this theme:
Expand All @@ -25,6 +26,7 @@ This page is meant to show a logo or image of the creator along with a bio or de
layout: about
title: about
permalink: "/about/"
sidebar: false
logo: "/path/to/author/image"
```
- Set an optional logo/author image.
Expand All @@ -48,6 +50,7 @@ This contact form is meant to be used with a FREE formspree.io account.
layout: contact
title: contact
permalink: "/contact/"
sidebar: false
```
- Create a free [formspree.io](https://formspree.io/) account
- Add your formspree info to your _config.yml
Expand Down Expand Up @@ -79,6 +82,7 @@ We're going to create an example gallery called 'illustration'.
layout: gallery
title: illustration
permalink: "/illustration/"
sidebar: false
```

- Create a new file called `illustration.yml` in the `_galleries` directory with the following content:
Expand Down
1 change: 1 addition & 0 deletions _pages/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: navigation
permalink: "/documentation/navigation/"
sidebar: false
---
# Navigation
Navigation is set using Jekyll's [Data Files](https://jekyllrb.com/docs/datafiles/) feature.
Expand Down
1 change: 1 addition & 0 deletions _pages/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: sass
permalink: "/documentation/sass/"
sidebar: false
---
# Sass Configuration
`_sass/variables.scss` includes the following variables for easy customization:
Expand Down
1 change: 1 addition & 0 deletions _pages/seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: seo
permalink: "/documentation/seo/"
sidebar: false
---
# SEO
This theme uses the following options SEO options:
Expand Down
11 changes: 11 additions & 0 deletions _pages/sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page
title: sidebar
permalink: "/documentation/sidebar/"
sidebar: false
---
# Sidebar
By default the "recent posts" aside and sidebar show up on every page. You can turn it off for any page by adding the following code that page's yaml frontmatter:
```
sidebar: false
```
1 change: 1 addition & 0 deletions _pages/social-icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: social-icons
permalink: "/documentation/social-icons/"
sidebar: false
---
# Social Icons

Expand Down

0 comments on commit 30b2028

Please sign in to comment.