_layouts/log.html in jekyll-lab-notebook-0.1.1 vs _layouts/log.html in jekyll-lab-notebook-0.1.2
- old
+ new
@@ -6,32 +6,36 @@
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.date | date: "%B %Y"}}</h1>
<p class="post-meta">
</header>
+ {% if page.next.url or page.previous.url %}
<div class="postNav cf">
{% if page.next.url %}
<a class="next{% if page.next.image %} image{% endif %}" href="{{ page.next.url | prepend: site.baseurl }}"><span>{{ page.next.date | date: "%B %Y" }} »</span></a>
{% endif %}
{% if page.previous.url %}
<a class="prev{% if page.previous.image %} image{% endif %}" href="{{ page.previous.url | prepend: site.baseurl }}"><span>« {{ page.previous.date | date: "%B %Y" }}</span></a>
{% endif %}
</div>
+ {% endif %}
<div class="post-content" itemprop="articleBody">
{{ content | replace: '<li>[ ]',
'<li class="box task-list-item">
<input type="checkbox" class="task-list-item-checkbox" disabled>' |
replace: '<li>[x]',
'<li class="box_done task-list-item">
<input type="checkbox" class="task-list-item-checkbox" value="on" disabled checked>' }}
</div>
+ {% if page.next.url or page.previous.url %}
<div class="postNav cf">
{% if page.next.url %}
<a class="next{% if page.next.image %} image{% endif %}" href="{{ page.next.url | prepend: site.baseurl }}"><span>{{ page.next.date | date: "%B %Y" }} »</span></a>
{% endif %}
{% if page.previous.url %}
<a class="prev{% if page.previous.image %} image{% endif %}" href="{{ page.previous.url | prepend: site.baseurl }}"><span>« {{ page.previous.date | date: "%B %Y" }}</span></a>
{% endif %}
</div>
+ {% endif %}
</article>