2017-12-19 22:48:21 +01:00
|
|
|
---
|
2018-10-12 18:31:24 +02:00
|
|
|
title: Blog
|
2019-02-10 19:22:52 +01:00
|
|
|
layout: blog
|
2017-12-19 22:48:21 +01:00
|
|
|
description: Welcome to NewPipe!
|
2017-12-20 15:13:00 +01:00
|
|
|
short: All posts
|
2017-12-19 22:48:21 +01:00
|
|
|
---
|
|
|
|
{% for post in paginator.posts %}
|
2018-03-05 13:16:05 +01:00
|
|
|
|
2019-02-26 23:12:16 +01:00
|
|
|
<div class="border-box" data-href="{{site.url }}{{ post.url }}">
|
|
|
|
<h4><a href="{{ BASE_PATH }}{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h4>
|
2017-12-19 22:48:21 +01:00
|
|
|
<p><span>{{ post.date | date_to_string }}, by {{ post.author }}</span></p><br>
|
2018-01-13 23:32:09 +01:00
|
|
|
{% if post.image %}
|
|
|
|
<div class="row">
|
|
|
|
<a href="{{ BASE_PATH }}{{ post.url }}">
|
|
|
|
<div class="col-md-3 col-img">
|
2022-10-09 19:21:03 +02:00
|
|
|
<img src="/img/{{ site.data.images[post.image].url }}" class="img-responsive postImg" alt="{% if site.data.images[post.image].name %}{{ site.data.images[post.image].name }}{% else %}post image{% endif %}" loading="{% if forloop.index > 3 %}lazy{% else %}rapid{% endif %}" />
|
2018-01-13 23:32:09 +01:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="col-md-9">
|
2018-02-12 22:22:37 +01:00
|
|
|
{% if post.excerpt_separator %}
|
2018-02-12 22:06:11 +01:00
|
|
|
{{ post.excerpt }}
|
|
|
|
{% else %}
|
2018-02-15 19:55:05 +01:00
|
|
|
{%- assign exc = post.content | normalize_whitespace | split: '</p>' -%}
|
|
|
|
{%- for excs in exc -%}
|
|
|
|
{%- if forloop.index < 3 -%}{{ excs | append : '</p>'}}{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2018-02-12 22:06:11 +01:00
|
|
|
{% endif %}
|
|
|
|
<p><a href="{{ post.url }}">Read more...</a></p>
|
2018-03-05 13:16:05 +01:00
|
|
|
<p class="categories">
|
|
|
|
{% for category in post.categories %}
|
|
|
|
<a href="{{ site.baseurl }}/blog/{{ category | slugize }}"><i class="fa fa-tag" aria-hidden="true"></i> {{ category }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
2018-01-13 23:32:09 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2018-02-12 22:22:37 +01:00
|
|
|
{% if post.excerpt_separator %}
|
2018-02-12 22:06:11 +01:00
|
|
|
{{ post.excerpt }}
|
|
|
|
{% else %}
|
|
|
|
{{ post.content | truncatewords:100 }}
|
|
|
|
{% endif %}
|
|
|
|
<p><a href="{{ post.url }}">Read more...</a></p>
|
2018-03-05 13:16:05 +01:00
|
|
|
|
|
|
|
<p class="categories">
|
|
|
|
{% for category in post.categories %}
|
|
|
|
<a href="{{ site.baseurl }}/blog/{{ category | slugize }}"><i class="fa fa-tag" aria-hidden="true"></i> {{ category }}</a>
|
|
|
|
{% unless forloop.last %} | {% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
2018-01-13 23:32:09 +01:00
|
|
|
{% endif %}
|
2018-02-12 22:06:11 +01:00
|
|
|
|
2017-12-19 22:48:21 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
{% if paginator.total_pages > 1 %}
|
2019-02-26 23:12:16 +01:00
|
|
|
<nav aria-label="Page navigation" class="pagination-container text-center border-box">
|
2017-12-19 22:48:21 +01:00
|
|
|
<ul class="pagination">
|
|
|
|
{% if paginator.previous_page %}
|
|
|
|
<li><a href="{{ paginator.previous_page_path }}" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a aria-label="Previous" class="disabled"><span aria-hidden="true">«</span></a></li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for page in (1..paginator.total_pages) %}
|
|
|
|
{% if page == paginator.page %}
|
|
|
|
<li><a class="active disabled">{{ page }}</a></li>
|
|
|
|
{% elsif page == 1 %}
|
2020-11-23 22:16:58 +01:00
|
|
|
<li><a href="{{ '/blog/' | relative_url }}">{{ page }}</a></li>
|
2017-12-19 22:48:21 +01:00
|
|
|
{% else %}
|
|
|
|
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if paginator.next_page %}
|
|
|
|
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" aria-label="Next"><span aria-hidden="true">»</span></a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a class="disabled"><span aria-hidden="true">»</span></a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|