Commit 852512c5 authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent df4489d8
# v1.9.85
## 01/04/2018
1. [](#improved)
* Added option to show all paragraphs (i.e. entire post) in RSS Feed items
# v1.9.84
## 01/02/2018
......
......@@ -3,7 +3,7 @@ title: 'UX News'
published: true
hide_git_sync_repo_link: false
rss_feed_display_order: date
rss_feed_header_images: '1'
rss_feed_header_images: true
rss_feed_preview_paragraphs: two
---
......
......@@ -3,7 +3,7 @@ title: 'UX News'
published: true
hide_git_sync_repo_link: false
rss_feed_display_order: date
rss_feed_header_images: '1'
rss_feed_header_images: true
rss_feed_preview_paragraphs: two
---
......
name: Course Hub Bootstrap
version: 1.9.84
version: 1.9.85
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
......@@ -74,13 +74,14 @@ form:
header.rss_feed_preview_paragraphs:
type: select
size: small
size: medium
label: RSS Feed Preview Paragraphs
default: one
options:
none: None
one: One
two: Two
one: One (with no formating)
two: Two (with no formating)
all: All (including formating and images)
additional_rss_feed_info:
type: display
......
......@@ -74,13 +74,14 @@ form:
header.rss_feed_preview_paragraphs:
type: select
size: small
size: medium
label: RSS Feed Preview Paragraphs
default: one
options:
none: None
one: One
two: Two
one: One (with no formating)
two: Two (with no formating)
all: All (including formating and images)
additional_rss_feed_info:
type: display
......
......@@ -34,7 +34,7 @@
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
{% if page.header.rss_feed_header_images and not (page.header.rss_feed_preview_paragraphs == 'all') %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
......@@ -47,11 +47,15 @@
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'all' %}
{{ item.content }}
{% else %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endfor %}
......@@ -61,7 +65,7 @@
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
{% if page.header.rss_feed_header_images and not (page.header.rss_feed_preview_paragraphs == 'all') %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
......@@ -74,11 +78,15 @@
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'all' %}
{{ item.content }}
{% else %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endif %}
......
......@@ -39,7 +39,7 @@
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
{% if page.header.rss_feed_header_images and not (page.header.rss_feed_preview_paragraphs == 'all') %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
......@@ -52,11 +52,15 @@
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'all' %}
{{ item.content }}
{% else %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endfor %}
......@@ -66,7 +70,7 @@
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
{% if page.header.rss_feed_header_images and not (page.header.rss_feed_preview_paragraphs == 'all') %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
......@@ -79,11 +83,15 @@
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'all' %}
{{ item.content }}
{% else %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endif %}
......
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