- Fix overridden publish date/time
- Add books to devotion theme - Tweak styles on devotion theme
This commit is contained in:
parent
2a5afc536e
commit
b367229814
|
@ -336,8 +336,10 @@ let save : HttpHandler = fun next ctx -> task {
|
||||||
let post =
|
let post =
|
||||||
match model.setPublished with
|
match model.setPublished with
|
||||||
| true ->
|
| true ->
|
||||||
let dt = DateTime (model.pubOverride.Value.ToUniversalTime().Ticks, DateTimeKind.Utc)
|
let dt =
|
||||||
printf $"**** DateKind = {dt.Kind}"
|
TimeZoneInfo.ConvertTimeToUtc
|
||||||
|
(DateTime (model.pubOverride.Value.Ticks, DateTimeKind.Unspecified),
|
||||||
|
TimeZoneInfo.FindSystemTimeZoneById webLog.timeZone)
|
||||||
match model.setUpdated with
|
match model.setUpdated with
|
||||||
| true ->
|
| true ->
|
||||||
{ post with
|
{ post with
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"hostname": "data02.bitbadger.solutions",
|
"hostname": "data02.bitbadger.solutions",
|
||||||
"database": "myWebLog_dev"
|
"database": "myWebLog_dev"
|
||||||
},
|
},
|
||||||
"Generator": "myWebLog 2.0-alpha29",
|
"Generator": "myWebLog 2.0-alpha30",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"MyWebLog.Handlers": "Debug"
|
"MyWebLog.Handlers": "Debug"
|
||||||
|
|
|
@ -55,8 +55,7 @@
|
||||||
</button>
|
</button>
|
||||||
</legend>
|
</legend>
|
||||||
<div id="metaItemContainer" class="collapse">
|
<div id="metaItemContainer" class="collapse">
|
||||||
{%- assign has_media = model.metaNames | where: "episode_media_file" | size -%}
|
{%- unless model.meta_names contains "episode_media_file" %}
|
||||||
{%- unless has_media == 0 %}
|
|
||||||
<button class="btn btn-sm btn-secondary" onclick="Admin.addPodcastFields()" id="addPodcastFieldButton">
|
<button class="btn btn-sm btn-secondary" onclick="Admin.addPodcastFields()" id="addPodcastFieldButton">
|
||||||
Add Podcast Episode Fields
|
Add Podcast Episode Fields
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -1,29 +1,20 @@
|
||||||
|
{%- assign ot_books = "ZPSOFpd27EeFQvrTZE296Q|VERPK2rYN0G44bo7LjBSRw|fA6zV4ON002oMPoVUZs17Q|vLsJo3GL1ECOQbSIEMUaig|WZ933xSw6kmo7644X9mmXw|68f2_zVlekaaIZD_BX0sZg|WffJH3t68kuVUyNZXYSFYw|xNlTF35s_UulA7S-NTgcAA|0y4PDhOc7kiw9hp0RwaJCg|59ysY5363EaVCG_g7fUH5A|aBlyuIzm206LTKx-uYIGnA|YoQKqdkrbUivAeUf3DISow|WOAq8A9bB0a8TKmYAB7IdA|TsxpRv1lrUiNNeGGfIx6XA|rJkq5d_MyUGPgACkMm0iTw|F_X9vUdpAUy957_qSejcnw|5jvC66CtG06zRlkKuP1naw|su8Qq5KUwEyoDmssUQhjHQ|FtVxmNkn_EavFJY3jqodfA|oToPYf8OQkCBsB6J65j3SA|rKzSJptZjU6YAOy6nIhfbw|K2lHyseO6UWdHftwLswhgg|rpThtWd1HUuSeyHLIs7gpw|CD8jYdoi0kGyXTbsD6F0aA|ttObDyRHnUudsSNUsdQ8BA|fi4ORg0B90C-DeQGTrOaMA|6AW2cZfbAkWX5HT4XEGjig|Pf6Gllf9gU-IF9xDcmWd0g|7cDaYscN6kmKsgwuiwPt9Q|WG_j96GOH0KzGORwKL8YVA|p7wi1sNiGUWhUa1tqRhS8Q|CgIcCoHtpUiCshdHe8wMoA|V1PTu4Xoq0eUnniYIb8Mkw|1h1LTN1XyU-qWIPHVY398A|t34QuaRN6kOWizvKNPtdSg|Tw5oe-kzfkiqCc6_4AVskQ|At7RBOfiN0aWMKln0Dkreg|JiUy9RgUZUOrjeMdBpln9g|hc7roSimX0mukJPTe6clWA|kTbX-fYdFk6TJ8Tikec-AQ" | split: "|" -%}
|
||||||
|
{%- assign nt_books = "Ksr4Dto97Um5NxhLpoRk5A|w-4_O87lYE-9_nrIXOuIHw|oJ_dgZir80mv2hat1rK4Qg|9QCQnNlevES8cYwHZWzrJw|DbkcRuTlnUyPXPPQso3L6g|CJZtcewtvUKqJH-rIUoR6g|xMRsXDsvDUiylTlFq6Tv-w|RmItBW75JUG7Iish-KRw1g|lKSYua82uE-YeMAzxqfrMg|Bopzxr31bkWJrFqO6o1oxg|KhiJGiHzvkiHXvkk9fEUOg|vFCY7egZskyaH-0jwDdQTQ|uxYuSzlDzU-AYGK-uo3RTg|VANy1bANREmh2DLujlaKGQ|CyO7saVd8kWHwzs3MaLe5w|71tayZrmnk6E8E-z8IWeIw|5H2xaOfutEyeZ755pY0mmA|uPHRl846Xk-SG-HEmITW-w|DF4Ub1Vqg0GSBIGWYJgCGw|-LfywKHkMEqRb1WVNSkcxg|AgO2o_kbG0GVTNVNT0233A|R6oXNiKgIkqjGhp-42inxg|WI1S5jo5-kOb5bgoNSb8Hg|MVsyPrQ8iUa_M6DJ4IR0CQ|6iDQYEk4yUa6B_-z49KYHA|MznlCejhZUqq_rxf4xrmwg|kG4B-4Pt6ECSxm14f3FWiA|T9GJpphYiUGYVgw7lmkmDA" | split: "|" -%}
|
||||||
|
{%- assign series_ids = "fpgE1kmfr0-xNBMbxUWxMA|FP7IiNghSEeZLBW21kkAgw|ca1OWFTvMU2H-lHpjsm5MQ|aK4djQBz_UCObjyPq5At_A" | split: "|" -%}
|
||||||
|
{%- assign series_details = "FP7IiNghSEeZLBW21kkAgw,Advent Readings,2019/advent-readings.html|aK4djQBz_UCObjyPq5At_A,Twisted Scripture,2017/twisted-scripture.html|ca1OWFTvMU2H-lHpjsm5MQ,The “3:16”s of the New Testament,2007/the-316s-of-the-new-testament.html" | split: "|" -%}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% if is_category or is_tag %}
|
{%- if is_category or is_tag %}
|
||||||
<h1 class="index-title">{{ page_title }}</h1>
|
<h1 class="index-title">{{ page_title }}</h1>
|
||||||
<!--
|
{%- if is_category %}
|
||||||
TODO: Convert this to Liquid
|
{%- assign cat = categories | where: "slug", slug | first -%}
|
||||||
if page.tag || page.category
|
{%- if cat.description %}<h2 class="index-title">{{ cat.description.value }}</h2>{% endif -%}
|
||||||
h1.index-title
|
{%- endif %}
|
||||||
if page.category
|
{%- endif %}
|
||||||
if oldTestamentBooks.indexOf(page.category) >= 0 || newTestamentBooks.indexOf(page.category) >= 0
|
|
||||||
| Posts referencing the
|
|
||||||
if page.category !== 'Old Testament' && page.category !== 'New Testament'
|
|
||||||
= ' book of'
|
|
||||||
= ' ' + page.category
|
|
||||||
else
|
|
||||||
| Posts categorized “#{page.category}”
|
|
||||||
else
|
|
||||||
| Posts tagged “#{page.tag}”
|
|
||||||
if 1 !== page.current
|
|
||||||
small (page #{page.current})
|
|
||||||
-->
|
|
||||||
{% endif %}
|
|
||||||
{% for post in model.posts %}
|
{% for post in model.posts %}
|
||||||
<article class="item">
|
<article class="item">
|
||||||
<h1 class="item-heading">
|
<h1 class="item-heading">
|
||||||
<a href="{{ post.permalink | relative_link }}"
|
<a href="{{ post.permalink | relative_link }}"
|
||||||
title="Permanent Link to “{{ post.title | strip_html | escape }}”">
|
title="Permanent Link to “{{ post.title | strip_html | escape_once }}”">
|
||||||
{{ post.title }}
|
{{ post.title }}
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -67,116 +58,101 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h4 class="item-heading">Series</h4>
|
<h4 class="item-heading">Series</h4>
|
||||||
<h4 class="text-center">Advent Readings</h4>
|
{%- for series in series_details %}
|
||||||
|
{% assign parts = series | split: "," %}
|
||||||
|
{% assign cat = categories | where: "id", parts[0] | first %}
|
||||||
|
<h4 class="text-center">{{ cat.name }}</h4>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<a href="{{ "2019/advent-readings.html" | relative_link }}"
|
<a href="{{ parts[2] | relative_link }}"
|
||||||
title="Advent Readings • A Word from the Word">
|
title="About the series “{{ cat.name | escape_once }}” • A Word from the Word">
|
||||||
About the Series
|
About the Series
|
||||||
</a> •
|
</a> •
|
||||||
<a href=" {{ "category/series/advent-readings/" | relative_link }}">Read All</a>
|
<a href="{{ cat | category_link }}">Read All</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
<small class="count">(-{% comment %} TODO: count
|
|
||||||
#{catCount('series/advent-readings')})
|
|
||||||
{% endcomment %})</small>
|
|
||||||
</p>
|
|
||||||
<hr class="sidebar-sep">
|
|
||||||
<h4 class="text-center">Twisted Scripture</h4>
|
|
||||||
<p class="text-center">
|
|
||||||
<a href="{{ "2017/twisted-scripture.html" | relative_link }}"
|
|
||||||
title="Twisted Scripture • A Word from the Word">
|
|
||||||
About the Series
|
|
||||||
</a> •
|
|
||||||
<a href="{{ "category/series/twisted-scripture/" | relative_link }}">Read All</a>
|
|
||||||
<small class="count">(-{% comment %} TODO: count
|
|
||||||
#{catCount('series/twisted-scripture')})
|
|
||||||
{% endcomment %})</small>
|
|
||||||
</p>
|
|
||||||
<hr class="sidebar-sep">
|
|
||||||
<h4 class="text-center">The “3:16s” of the New Testament</h4>
|
|
||||||
<p class="text-center">
|
|
||||||
<a href="{{ "2007/the-316s-of-the-new-testament.html" | relative_link }}"
|
|
||||||
title="The “3:16s” of the New Testament • A Word from the Word">
|
|
||||||
About the Series
|
|
||||||
</a> •
|
|
||||||
<a href="{{ "category/series/the-3-16-s-of-the-new-testament/" | relative_link }}">Read All</a>
|
|
||||||
<small class="count">(-{% comment %} TODO: count
|
|
||||||
#{catCount('series/the-3-16-s-of-the-new-testament')})
|
|
||||||
{% endcomment %})</small>
|
|
||||||
</p>
|
</p>
|
||||||
|
{% unless forloop.last %}<hr class="sidebar-sep">{% endunless %}
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% comment %}
|
|
||||||
TODO: group categories by Old Testament / New Testament / Topics
|
|
||||||
(may work better once the categories are loaded and we can hard-code IDs
|
|
||||||
{% endcomment %}
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h4 class="item-heading">Books</h4>
|
<h4 class="item-heading">Books</h4>
|
||||||
<p>Each devotion is categorized under the books of the Bible which are referenced within it.</p>
|
<p>Each devotion is categorized under the books of the Bible which are referenced within it.</p>
|
||||||
<hr class="sidebar-sep">
|
<hr class="sidebar-sep">
|
||||||
<h4 class="text-center">Old Testament</h4>
|
<h4 class="text-center">Old Testament</h4>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<a href="{{ "category/old-testament/" | relative_link }}"
|
{%- assign cat_id = ot_books | first -%}
|
||||||
title="Devotions referencing the Old Testament">
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
|
<a href="{{ cat | category_link }}"
|
||||||
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
See All
|
See All
|
||||||
</a> <small class="count">(-{% comment %} TODO: count
|
</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
#{catCount('old-testament')})
|
|
||||||
{% endcomment %})</small>
|
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
{%- assign first_time = true -%}
|
||||||
{% for cat_id in ot_books -%}
|
{% for cat_id in ot_books -%}
|
||||||
|
{%- if first_time -%}
|
||||||
|
{%- assign first_time = false -%}
|
||||||
|
{%- else %}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
<li>
|
<li>
|
||||||
{% if cat.post_count == 0 -%}
|
{% if cat.post_count == 0 -%}
|
||||||
<span title="Devotions referencing the book of {{ cat.name }}">{{ cat.name }}</span>
|
<span{% if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
<small class="count">(0)</small>
|
{{ cat.name }}
|
||||||
|
</span> <small class="count">(0)</small>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<a href="{{ cat | category_link }}"
|
<a href="{{ cat | category_link }}"
|
||||||
title="Devotions referencing the book of {{ cat.name}}">
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</a> <small class="count">({{ cat.post_count }})</small>
|
</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</li>
|
</li>
|
||||||
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<hr class="sidebar-sep">
|
<hr class="sidebar-sep">
|
||||||
<h4 class="text-center">New Testament</h4>
|
<h4 class="text-center">New Testament</h4>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<a href="{{ "category/new-testament/" | relative_link }}"
|
{%- assign cat_id = nt_books | first -%}
|
||||||
title="Devotions referencing the New Testament">
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
|
<a href="{{ cat | category_link }}"
|
||||||
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
See All
|
See All
|
||||||
</a> <small class="count">(-{% comment %} TODO: count
|
</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
#{catCount('new-testament')})
|
|
||||||
{% endcomment %})</small>
|
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
{% for cat_id in nt_books -%}
|
{%- assign first_time = true -%}
|
||||||
|
{%- for cat_id in nt_books -%}
|
||||||
|
{%- if first_time -%}
|
||||||
|
{%- assign first_time = false -%}
|
||||||
|
{%- else %}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
<li>
|
<li>
|
||||||
{% if cat.post_count == 0 %}
|
{% if cat.post_count == 0 -%}
|
||||||
<span title="Devotions referencing the book of {{ cat.name }}">{{ cat.name }}</span>
|
<span{% if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
<small class="count">(0)</small>
|
{{ cat.name }}
|
||||||
{% else %}
|
</span> <small class="count">(0)</small>
|
||||||
|
{%- else -%}
|
||||||
<a href="{{ cat | category_link }}"
|
<a href="{{ cat | category_link }}"
|
||||||
title="Devotions referencing the book of {{ cat.name }}">
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</a> <small class="count">({{ cat.post_count }})</small>
|
</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
{% comment %}
|
|
||||||
- var topics = cats.filter(excludeBooks).filter(cat => !cat.slug.startsWith('series')).sort((a, b) => a.name.localeCompare(b.name))
|
|
||||||
{% endcomment %}
|
|
||||||
<h4 class="item-heading">Topics</h4>
|
<h4 class="item-heading">Topics</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{% for cat_id in topics %}
|
{%- for cat in categories -%}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- unless ot_books contains cat.id or nt_books contains cat.id or series_ids contains cat.id -%}
|
||||||
<li>
|
<li>
|
||||||
|
{%- for it in cat.parent_names %} {% endfor -%}
|
||||||
<a href="{{ cat | category_link }}"
|
<a href="{{ cat | category_link }}"
|
||||||
title="Devotions about {{ cat.name | escape }}">
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</a> <small class="count">({{ cat.post_count }})</small>
|
</a> <small class="count">({{ cat.post_count }})</small>
|
||||||
</li>
|
</li>
|
||||||
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
|
{%- assign ot_books = "ZPSOFpd27EeFQvrTZE296Q|VERPK2rYN0G44bo7LjBSRw|fA6zV4ON002oMPoVUZs17Q|vLsJo3GL1ECOQbSIEMUaig|WZ933xSw6kmo7644X9mmXw|68f2_zVlekaaIZD_BX0sZg|WffJH3t68kuVUyNZXYSFYw|xNlTF35s_UulA7S-NTgcAA|0y4PDhOc7kiw9hp0RwaJCg|59ysY5363EaVCG_g7fUH5A|aBlyuIzm206LTKx-uYIGnA|YoQKqdkrbUivAeUf3DISow|WOAq8A9bB0a8TKmYAB7IdA|TsxpRv1lrUiNNeGGfIx6XA|rJkq5d_MyUGPgACkMm0iTw|F_X9vUdpAUy957_qSejcnw|5jvC66CtG06zRlkKuP1naw|su8Qq5KUwEyoDmssUQhjHQ|FtVxmNkn_EavFJY3jqodfA|oToPYf8OQkCBsB6J65j3SA|rKzSJptZjU6YAOy6nIhfbw|K2lHyseO6UWdHftwLswhgg|rpThtWd1HUuSeyHLIs7gpw|CD8jYdoi0kGyXTbsD6F0aA|ttObDyRHnUudsSNUsdQ8BA|fi4ORg0B90C-DeQGTrOaMA|6AW2cZfbAkWX5HT4XEGjig|Pf6Gllf9gU-IF9xDcmWd0g|7cDaYscN6kmKsgwuiwPt9Q|WG_j96GOH0KzGORwKL8YVA|p7wi1sNiGUWhUa1tqRhS8Q|CgIcCoHtpUiCshdHe8wMoA|V1PTu4Xoq0eUnniYIb8Mkw|1h1LTN1XyU-qWIPHVY398A|t34QuaRN6kOWizvKNPtdSg|Tw5oe-kzfkiqCc6_4AVskQ|At7RBOfiN0aWMKln0Dkreg|JiUy9RgUZUOrjeMdBpln9g|hc7roSimX0mukJPTe6clWA|kTbX-fYdFk6TJ8Tikec-AQ" | split: "|" -%}
|
||||||
|
{%- assign nt_books = "Ksr4Dto97Um5NxhLpoRk5A|w-4_O87lYE-9_nrIXOuIHw|oJ_dgZir80mv2hat1rK4Qg|9QCQnNlevES8cYwHZWzrJw|DbkcRuTlnUyPXPPQso3L6g|CJZtcewtvUKqJH-rIUoR6g|xMRsXDsvDUiylTlFq6Tv-w|RmItBW75JUG7Iish-KRw1g|lKSYua82uE-YeMAzxqfrMg|Bopzxr31bkWJrFqO6o1oxg|KhiJGiHzvkiHXvkk9fEUOg|vFCY7egZskyaH-0jwDdQTQ|uxYuSzlDzU-AYGK-uo3RTg|VANy1bANREmh2DLujlaKGQ|CyO7saVd8kWHwzs3MaLe5w|71tayZrmnk6E8E-z8IWeIw|5H2xaOfutEyeZ755pY0mmA|uPHRl846Xk-SG-HEmITW-w|DF4Ub1Vqg0GSBIGWYJgCGw|-LfywKHkMEqRb1WVNSkcxg|AgO2o_kbG0GVTNVNT0233A|R6oXNiKgIkqjGhp-42inxg|WI1S5jo5-kOb5bgoNSb8Hg|MVsyPrQ8iUa_M6DJ4IR0CQ|6iDQYEk4yUa6B_-z49KYHA|MznlCejhZUqq_rxf4xrmwg|kG4B-4Pt6ECSxm14f3FWiA|T9GJpphYiUGYVgw7lmkmDA" | split: "|" -%}
|
||||||
|
{%- assign series_ids = "fpgE1kmfr0-xNBMbxUWxMA|FP7IiNghSEeZLBW21kkAgw|ca1OWFTvMU2H-lHpjsm5MQ|aK4djQBz_UCObjyPq5At_A" | split: "|" -%}
|
||||||
{%- assign post = model.posts | first -%}
|
{%- assign post = model.posts | first -%}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<article class="item">
|
<article class="item">
|
||||||
<h1 class="item-heading">{{ post.title }}</h1>
|
<h1 class="item-heading">{{ post.title }}</h1>
|
||||||
{% assign media = post.meta | value: "episode_media_file" %}
|
{% assign media = post.metadata | value: "episode_media_file" %}
|
||||||
{%- unless media == "-- episode_media_file not found --" %}
|
{%- unless media == "-- episode_media_file not found --" %}
|
||||||
<aside class="podcast">
|
<aside class="podcast">
|
||||||
<p class="text-center"><strong>Listen While<br>You Read</strong></p>
|
<p class="text-center"><strong>Listen While<br>You Read</strong></p>
|
||||||
|
@ -22,13 +25,13 @@
|
||||||
<div class="nav-previous">
|
<div class="nav-previous">
|
||||||
{% if model.newer_link %}
|
{% if model.newer_link %}
|
||||||
<span class="post-nav">Previous Post</span><br>
|
<span class="post-nav">Previous Post</span><br>
|
||||||
<a class="post-nav-title" href="{{ model.newer_link.value }}">{{ model.newer_name.value }}</a>
|
<a class="post-nav-title" href="{{ model.newer_link.value | relative_link }}">{{ model.newer_name.value }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-next">
|
<div class="nav-next">
|
||||||
{% if model.older_link %}
|
{% if model.older_link %}
|
||||||
<span class="post-nav">Next Post</span> <br>
|
<span class="post-nav">Next Post</span> <br>
|
||||||
<a class="post-nav-title" href="{{ model.older_link.value }}">{{ model.older_name.value }}</a>
|
<a class="post-nav-title" href="{{ model.older_link.value | relative_link }}">{{ model.older_name.value }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -51,59 +54,71 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
{%- if post_ot_book_count > 0 or post_nt_book_count > 0 %}
|
{%- assign has_ot = false -%}
|
||||||
|
{%- for ot_id in ot_books -%}
|
||||||
|
{%- if post.category_ids contains ot_id %}{% assign has_ot = true %}{% endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- assign has_nt = false -%}
|
||||||
|
{%- for nt_id in nt_books -%}
|
||||||
|
{%- if post.category_ids contains nt_id %}{% assign has_nt = true %}{% endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- if has_ot or has_nt %}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h4 class="item-heading">Scripture</h4>
|
<h4 class="item-heading">Scripture</h4>
|
||||||
{%- if post_ot_book_count > 0 %}
|
{%- if has_ot %}
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{%- assign cat_id = post_ot_books | first -%}
|
{%- assign cat_id = ot_books | first -%}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
<span class=post-meta" style="white-space:nowrap;">
|
|
||||||
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
||||||
<a href="{{ cat | category_link }}" title="References the {{ cat.name }}">{{ cat.name }}</a>
|
<a href="{{ cat | category_link }}"
|
||||||
</span>
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
<ul>
|
|
||||||
{%- assign skipped_one = false -%}
|
|
||||||
{%- for cat_id in post_ot_books %}
|
|
||||||
{%- if skipped_one %}
|
|
||||||
{% assign cat = categories | where: "id", cat_id | first %}
|
|
||||||
<span class=post-meta" style="white-space:nowrap;">
|
|
||||||
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
|
||||||
<a href="{{ cat | category_link }}" title="References the book of {{ cat.name }}">
|
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
<ul>
|
||||||
{%- else -%}
|
{%- assign first_time = true -%}
|
||||||
{%- assign skipped_on = true -%}
|
{%- for cat_id in ot_books %}
|
||||||
|
{%- if first_time %}
|
||||||
|
{%- assign first_time = false -%}
|
||||||
|
{%- elsif post.category_ids contains cat_id %}
|
||||||
|
{% assign cat = categories | where: "id", cat_id | first %}
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
||||||
|
<a href="{{ cat | category_link }}"
|
||||||
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
|
{{ cat.name }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if post_nt_book_count > 0 %}
|
{%- if has_nt %}
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{%- assign cat_id = post_nt_books | first -%}
|
{%- assign cat_id = nt_books | first -%}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
<span class=post-meta" style="white-space:nowrap;">
|
|
||||||
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
||||||
<a href="{{ cat | category_link }}" title="References the {{ cat.name }}">{{ cat.name }}</a>
|
<a href="{{ cat | category_link }}"
|
||||||
</span>
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
<ul>
|
|
||||||
{%- assign skipped_one = false -%}
|
|
||||||
{%- for cat_id in post_nt_books %}
|
|
||||||
{%- if skipped_one %}
|
|
||||||
{% assign cat = categories | where: "id", cat_id | first %}
|
|
||||||
<span class=post-meta" style="white-space:nowrap;">
|
|
||||||
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
|
||||||
<a href="{{ cat | category_link }}" title="References the book of {{ cat.name }}">
|
|
||||||
{{ cat.name }}
|
{{ cat.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
<ul>
|
||||||
{%- else -%}
|
{%- assign first_time = true -%}
|
||||||
{%- assign skipped_on = true -%}
|
{%- for cat_id in nt_books %}
|
||||||
|
{%- if first_time %}
|
||||||
|
{%- assign first_time = false -%}
|
||||||
|
{%- elsif post.category_ids contains cat_id %}
|
||||||
|
{% assign cat = categories | where: "id", cat_id | first %}
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-book" title="Book" aria-hidden="true"></i>
|
||||||
|
<a href="{{ cat | category_link }}"
|
||||||
|
{%- if cat.description %} title="{{ cat.description.value | escape_once }}"{% endif %}>
|
||||||
|
{{ cat.name }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -112,18 +127,42 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if post_topic_count > 0 %}
|
{%- assign in_series = false -%}
|
||||||
|
{%- for series_id in series_ids %}
|
||||||
|
{%- if post.category_ids contains series_id -%}
|
||||||
|
{%- assign in_series = true -%}
|
||||||
|
{%- assign series_cat = categories | where: "id", series_id | first -%}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- if in_series %}
|
||||||
|
<div class="item text-center">
|
||||||
|
<h4 class="item-heading">Series</h4>
|
||||||
|
<a href="{{ series_cat | category_link }}"
|
||||||
|
{% if series_cat.description %} title="{{ series_cat.description.value | escape_once }}"{% endif %}>
|
||||||
|
{{ series_cat.name }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{%- endif %}
|
||||||
|
{%- assign has_topics = false -%}
|
||||||
|
{% for cat_id in post.category_ids -%}
|
||||||
|
{%- unless ot_books contains cat_id or nt_books contains cat_id or series_ids contains cat_id -%}
|
||||||
|
{% assign has_topics = true -%}
|
||||||
|
{%- endunless -%}
|
||||||
|
{% endfor %}
|
||||||
|
{%- if has_topics %}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h4 class="item-heading">Topics</h4>
|
<h4 class="item-heading">Topics</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{%- for cat_id in post_topics %}
|
{%- for cat_id in post.category_ids %}
|
||||||
|
{% unless ot_books contains cat_id or nt_books contains cat_id or series_ids contains cat_id %}
|
||||||
{%- assign cat = categories | where: "id", cat_id | first -%}
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
||||||
<li>
|
<li>
|
||||||
<span class="post-meta" style="white-space:nowrap;">
|
|
||||||
<i class="fa fa-folder-open-o" title="Category" aria-hidden="true"></i>
|
<i class="fa fa-folder-open-o" title="Category" aria-hidden="true"></i>
|
||||||
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | escape }}">{{ cat.name }}</a>
|
<a href="{{ cat | category_link }}" rel="tag" title="Categorized under {{ cat.name | escape }}">
|
||||||
</span>
|
{{ cat.name }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endunless %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -135,11 +174,9 @@
|
||||||
<ul>
|
<ul>
|
||||||
{%- for tag in post.tags %}
|
{%- for tag in post.tags %}
|
||||||
<li>
|
<li>
|
||||||
<span class="post-meta" style="white-space:nowrap;">
|
|
||||||
<a href="{{ tag | tag_link }}" title="Tagged “{{ tag }}”">
|
<a href="{{ tag | tag_link }}" title="Tagged “{{ tag }}”">
|
||||||
<i class="fa fa-tag" aria-hidden="true"></i> {{ tag }}
|
<i class="fa fa-tag" aria-hidden="true"></i> {{ tag }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -108,7 +108,7 @@ h1, h2, h3, h4, p, ul {
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
@media all and (max-width:78rem) {
|
@media all and (max-width:81rem) {
|
||||||
.container {
|
.container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -124,7 +124,7 @@ h1, h2, h3, h4, p, ul {
|
||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
max-width: 18rem;
|
max-width: 20rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -134,7 +134,7 @@ h1, h2, h3, h4, p, ul {
|
||||||
padding: 0 .4rem;
|
padding: 0 .4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media all and (max-width:78rem) {
|
@media all and (max-width:81rem) {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 60rem;
|
max-width: 60rem;
|
||||||
|
@ -168,7 +168,7 @@ h1, h2, h3, h4, p, ul {
|
||||||
.post-sidebar {
|
.post-sidebar {
|
||||||
margin-top: 4rem;
|
margin-top: 4rem;
|
||||||
}
|
}
|
||||||
@media all and (max-width:78rem) {
|
@media all and (max-width:81rem) {
|
||||||
.post-sidebar {
|
.post-sidebar {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
@ -191,12 +191,19 @@ blockquote {
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
blockquote p:last-of-type {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
blockquote p:nth-last-of-type(2) {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
blockquote.standard p:nth-last-of-type(2) {
|
||||||
|
margin-bottom: inherit;
|
||||||
|
}
|
||||||
blockquote.standard {
|
blockquote.standard {
|
||||||
margin: 1rem 2rem 1rem 1rem;
|
margin: 1rem 2rem 1rem 1rem;
|
||||||
border-left: solid 3px var(--accent-color);
|
border-left: solid 3px var(--accent-color);
|
||||||
}
|
font-family: inherit;
|
||||||
blockquote p.cite {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
blockquote cite {
|
blockquote cite {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -210,6 +217,9 @@ blockquote cite {
|
||||||
top: 5px;
|
top: 5px;
|
||||||
margin: 0 -11px -11px -12px;
|
margin: 0 -11px -11px -12px;
|
||||||
}
|
}
|
||||||
|
blockquote cite::before {
|
||||||
|
content: "— ";
|
||||||
|
}
|
||||||
.ref {
|
.ref {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
@ -223,11 +233,19 @@ blockquote sup {
|
||||||
.u {
|
.u {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
blockquote.standard footer cite {
|
blockquote.standard footer {
|
||||||
font-style: normal;
|
padding-top: 1rem;
|
||||||
}
|
}
|
||||||
blockquote.standard footer cite::before {
|
blockquote.standard footer cite {
|
||||||
content: ", ";
|
font-style: italic;
|
||||||
|
background: unset;
|
||||||
|
display: inline;
|
||||||
|
text-align: left;
|
||||||
|
height: unset;
|
||||||
|
background: unset;
|
||||||
|
position: unset;
|
||||||
|
top: unset;
|
||||||
|
margin: inherit;
|
||||||
}
|
}
|
||||||
cite {
|
cite {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@ -288,13 +306,13 @@ h1 {
|
||||||
color: var(--title-text-color);
|
color: var(--title-text-color);
|
||||||
}
|
}
|
||||||
.item-meta {
|
.item-meta {
|
||||||
margin: -.4rem;
|
|
||||||
margin-bottom: 1.2rem;
|
margin-bottom: 1.2rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.date-posted {
|
.date-posted {
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.text-center {
|
.text-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user