Commit 03f62196 authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 36ac2738
# v1.9.97
## 01/18/2018
1. [](#improved)
* Relocated Blog Post custom icon from Site options to Blog List options
* Updated 'intermediate', 'advanced' and default course demo pages in theme '_demo' folder
# v1.9.96
## 01/17/2018
1. [](#improved)
* Updated handling of blog item display, where if no summary is present that the same content is displayed for both the summary and actual page
# v1.9.95
## 01/15/2018
......
---
title: 'UX Techniques'
published: true
hide_page_title: false
hide_git_sync_repo_link: false
cache_enable: false
......@@ -10,4 +11,3 @@ content:
dir: asc
limit: 0
---
---
title: 'UX Techniques'
hide_page_title: false
published: true
hide_git_sync_repo_link: false
cache_enable: false
content:
......@@ -10,4 +10,3 @@ content:
dir: asc
limit: 0
---
---
title: 'UX Techniques'
hide_page_title: false
published: false
hide_git_sync_repo_link: false
cache_enable: false
content:
......@@ -10,4 +10,3 @@ content:
dir: asc
limit: 0
---
name: Course Hub Bootstrap
version: 1.9.95
version: 1.9.97
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
......@@ -15,18 +15,18 @@ form:
coursehub1:
type: section
title: Page Metadata
title: "Appearance"
underline: true
header.metadata:
type: array
label: Metadata Items
required: true
coursehub2:
type: section
title: "'View All of...' Links"
underline: true
header.post_icon:
type: text
size: small
label: Default Blog Item Font Awesome Icon
default: 'calendar-o'
description: Short name, e.g. 'calendar'.
help: Determines the default Font Awesome icon used for the blog posts.
validate:
type: text
header.continue_link_as_button:
type: toggle
......@@ -40,7 +40,7 @@ form:
validate:
type: bool
coursehub3:
coursehub2:
type: section
title: Git Repository
underline: true
......@@ -65,3 +65,13 @@ form:
default: null
validate:
type: URL
coursehub3:
type: section
title: Page Metadata
underline: true
header.metadata:
type: array
label: Metadata Items
required: true
......@@ -20,11 +20,14 @@
{% else %}
{# added page title icon - hibbittsdesign.org #}
{% if page.header.icon %}
{% set titleicon = page.header.icon %}
{% else %}
{% if config.site.icon.post %}
{% set titleicon = config.site.icon.post %}
{% endif %}
{% set titleicon = page.header.icon %}
{% else %}
{% if config.site.icon.post %}
{% set titleicon = config.site.icon.post %}
{% endif %}
{% if page.parent.header.post_icon %}
{% set titleicon = page.parent.header.post_icon %}
{% endif %}
{% endif %}
{% if not (grav.uri.param('hidepagetitle')) %}
{% if titleicon %}
......@@ -132,14 +135,26 @@
<p>{{ page.content }}</p>
{% endif %}
<p>
<a href="{{ page.url }}">Continue Reading...</a>
{% if page.parent.header.continue_links_as_buttons %}
<a class="btn btn-default" href="{{ page.url }}">View all of
{% else %}
<a href="{{ page.url }}">View all of
{% endif %}
{{ page.title }}
<i class="fa fa-chevron-right" aria-hidden="true"></i>
</a>
</p>
<hr>
{% else %}
{# added summary flag and Git repository edit link - hibbittsdesign.org #}
{% set content = page.content|slice(page.summary|length) %}
{# do not display summary on actual page - hibbittsdesign.org #}
{# do not display summary on actual page unless there is no summary - hibbittsdesign.org #}
{% if not (grav.uri.param('summaryonly')) %}
<p>{{ content }}</p>
{% if content is not empty %}
<p>{{ content }}</p>
{% else %}
<p>{{ page.summary }}</p>
{% endif %}
<hr>
{% if ( page.header.git_sync_repo_link_display is defined and page.header.git_sync_repo_link_display == 'page' ) or (( config.site.gitrepo.editlinklocation == 'page' and page.header.git_sync_repo_link_display is not defined ) and not (page.header.hide_git_sync_repo_link)) %}
<br>
......
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