This is necessary for some book titles, like 1 and 2 Corinthians, since the existing capitalize filter would otherwise ignore the title casing on the book name.
115 lines
3.7 KiB
Text
115 lines
3.7 KiB
Text
---
|
|
layout: base
|
|
pagination:
|
|
data: collections.notes
|
|
size: 6
|
|
alias: notes
|
|
permalink: notes/{{ notes | slugify }}/index.html
|
|
---
|
|
|
|
<main id="main" class="main box-flex" tabindex="-1">
|
|
|
|
{#
|
|
<article id="container-centre" class="column centre">
|
|
|
|
<header class="page-header inner pt-700 pb-600">
|
|
|
|
<h1 class="page-title">{{ title }}</h1>
|
|
|
|
{% if content %}
|
|
|
|
<div class="sub-heading">{{ content | safe }}</div>
|
|
|
|
{% endif %}
|
|
|
|
</header>
|
|
|
|
</article>#}
|
|
|
|
<div class="bg-white pt-1100 pb-1100">
|
|
|
|
<div class="posts inner box-grid">
|
|
|
|
{% for post in notes %}
|
|
|
|
<article class="card">
|
|
|
|
{# post image #}
|
|
{% if post.data.post_image %}
|
|
|
|
<a class="box-block" href="{{ post.url | url }}">
|
|
|
|
<span class="card-header box-block">
|
|
|
|
<span class="card-categories">
|
|
|
|
{% for item in post.data.tags %}
|
|
|
|
{%- if item !== 'notes' -%}
|
|
|
|
<span class="category bg-{%- if post.data.scripture_category %}{{ post.data.scripture_category }} {%- else %}secondary {%- endif %} color-primary text-300">{{ item | titleCase }}</span>
|
|
|
|
{%- endif -%}
|
|
|
|
{% endfor %}
|
|
|
|
{%- if post.data.session -%}
|
|
<span class="category bg-light-grey color-primary text-300">Session {{ post.data.session }}</span>
|
|
{%- endif -%}
|
|
|
|
</span>
|
|
|
|
<img class="card-image" data-src="{{ post.data.post_image | url }}" alt="{{ post.data.image_alt }}">
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<div class="card-content pt-700 pb-900 pl-300 pr-300">
|
|
|
|
<h3><a class="card-title-link color-primary weight-regular hover-color-secondary" href="{{ post.url | url }}">{{ post.data.title }}</a></h3>
|
|
{%- if post.data.sub_heading -%}
|
|
<h4>{{ post.data.sub_heading }}</h4>
|
|
{%- endif -%}
|
|
|
|
<time class="datetime color-grey text-600" datetime="{{ post.date | timestamp }}">
|
|
{%- if not post.data.date_override %}
|
|
{{ post.date | dateDisplay }}
|
|
{%- else %}
|
|
{{ post.data.date_override }}
|
|
{% endif -%}
|
|
</time>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if pagination.pages.length > 1 %}
|
|
<div class="pagination inner box-grid">
|
|
<ul>
|
|
{%- if pagination.pages.length > 2 and pagination.href.previous %}
|
|
<li><a href="{{ pagination.href.previous }}">« Prev</a></li>
|
|
{% endif -%}
|
|
{% for entry in pagination.pages %}
|
|
{% if page.url == pagination.hrefs[loop.index0] %}
|
|
<li class="current">{{ loop.index }}</li>
|
|
{% else %}
|
|
<li><a href="/sundays{{ pagination.hrefs[ loop.index0 ] }}"{% if page.url == pagination.hrefs[ loop.index0 ] %} class="current"{% endif %}>{{ loop.index }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{%- if pagination.pages.length > 2 and pagination.href.next %}
|
|
<li><a href="{{ pagination.href.next }}">Next »</a></li>
|
|
{% endif -%}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</main>
|