Commit 7d7b4b92 authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 03f62196
# v1.9.99
## 01/19/2018
1. [](#improved)
* Updated 'basic', 'intermediate' and 'advanced' course examples in theme '_demo' folder
1. [](#bugfix)
* Restored missing link in Theme Blueprint for theme docs
* Corrected Blueprint option name for displaying 'View all of...' links as buttons
# v1.9.98
## 01/19/2018
1. [](#improved)
* Relocated Hide Blog Page Sidebar from Site options to Blog List options
# v1.9.97
## 01/18/2018
......
......@@ -2,6 +2,7 @@
title: Home
body_classes: 'header-image fullwidth'
child_type: item
post_icon: calendar-o
content:
items: '@self.children'
limit: 10
......
......@@ -2,6 +2,7 @@
title: Home
body_classes: 'header-image fullwidth'
child_type: item
post_icon: calendar-o
content:
items: '@self.children'
limit: 10
......
......@@ -2,6 +2,7 @@
title: Home
body_classes: 'header-image fullwidth'
child_type: item
post_icon: calendar-o
content:
items: '@self.children'
limit: 10
......
......@@ -2,6 +2,7 @@
title: Home
body_classes: 'header-image fullwidth'
child_type: item
post_icon: calendar-o
content:
items: '@self.children'
limit: 10
......
name: Course Hub Bootstrap
version: 1.9.97
version: 1.9.99
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......@@ -8,6 +8,7 @@ author:
url: http://hibbittsdesign.org
homepage: https://github.com/hibbitts-design/grav-theme-course-hub-bootstrap
demo: http://demo.hibbittsdesign.org/grav-course-hub-bootstrap
docs: https://github.com/hibbitts-design/grav-theme-course-hub-bootstrap/blob/master/README.md
keywords: bootstrap, theme, framework, course, lms
bugs: https://github.com/hibbitts-design/grav-theme-course-hub-bootstrap/issues
license: MIT
......
......@@ -18,6 +18,17 @@ form:
title: "Appearance"
underline: true
header.hide_blog_sidebar:
type: toggle
label: Display Sidebar on all Blog Pages
highlight: 0
default: 0
options:
0: Yes
1: No
validate:
type: bool
header.post_icon:
type: text
size: small
......
......@@ -25,7 +25,7 @@
<div class="container">
<div class="row">
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.header.hide_blog_sidebar) %}
<div class="col-sm-8 blog-main">
{% else %}
<div class="col-sm-12 blog-main">
......@@ -64,7 +64,7 @@
</div>
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.header.hide_blog_sidebar) %}
<div class="col-sm-4 blog-sidebar">
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
</div>
......
......@@ -17,7 +17,7 @@
<div class="row">
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.parent.header.hide_blog_sidebar) %}
<div class="col-sm-8 blog-main">
{% else %}
<div class="col-sm-12 blog-main">
......@@ -31,7 +31,7 @@
{% include 'partials/blog_item.html.twig' with {'blog':page.parent, 'truncate':false} %}
</div>
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.parent.header.hide_blog_sidebar) %}
<div class="col-sm-4 blog-sidebar">
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
</div>
......
......@@ -17,7 +17,7 @@
<div class="row">
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.parent.header.hide_blog_sidebar) %}
<div class="col-sm-8 blog-main">
{% else %}
<div class="col-sm-12 blog-main">
......@@ -31,7 +31,7 @@
{% include 'partials/blog_item.html.twig' with {'blog':page.parent, 'truncate':false} %}
</div>
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) %}
{% if not (grav.uri.param('chromeless')) and not (config.site.hidesidebaronblogpages.enabled) and not (page.parent.header.hide_blog_sidebar) %}
<div class="col-sm-4 blog-sidebar">
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
</div>
......
......@@ -118,7 +118,7 @@
{# added summary flag and title icon - hibbittsdesign.org #}
<p>{{ page.summary }}</p>
<p>
{% if page.parent.header.continue_links_as_buttons %}
{% if page.parent.header.continue_link_as_button %}
<a class="btn btn-default" href="{{ page.url }}">View all of
{% else %}
<a href="{{ page.url }}">View all of
......@@ -135,7 +135,7 @@
<p>{{ page.content }}</p>
{% endif %}
<p>
{% if page.parent.header.continue_links_as_buttons %}
{% if page.parent.header.continue_link_as_button %}
<a class="btn btn-default" href="{{ page.url }}">View all of
{% else %}
<a href="{{ page.url }}">View all of
......@@ -165,7 +165,7 @@
{% else %}
<p>{{ page.summary }}</p>
<p>
{% if page.parent.header.continue_links_as_buttons %}
{% if page.parent.header.continue_link_as_button %}
<a class="btn btn-default topwindow external-link" href="{{ page.url ~ '/chromeless:true' }}">View all of
{% else %}
<a class="topwindow external-link" href="{{ page.url ~ '/chromeless:true' }}">View all of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment