web/_layouts/home.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2019-09-30 15:38:41 +03:00
---
layout: page
# The Home page layout
2020-01-02 16:17:49 +03:00
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
2019-09-30 15:38:41 +03:00
# © 2017-2019 Cotes Chung
# MIT Licensed
---
<div id="post-list">
{% for post in paginator.posts %}
<div class="post-preview">
<h1>
2020-05-28 20:55:57 +03:00
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
2019-09-30 15:38:41 +03:00
</h1>
<div class="post-content">
<p>
{% assign _content = post.content %}
{% include no-linenos.html %}
{{ _content | markdownify | strip_html | truncate: 200 }}
2019-09-30 15:38:41 +03:00
</p>
</div>
2020-04-07 15:23:57 +03:00
<div class="post-meta text-muted">
2019-09-30 15:38:41 +03:00
<!-- posted date -->
<i class="far fa-clock fa-fw"></i>
<span class="timeago" data-toggle="tooltip" data-placement="bottom"
title="{{ post.date | date: site.data.date_format.tooltip }}">
{{ post.date | date: site.data.date_format.post }}
<i class="unloaded">{{ post.date | date_to_xmlschema }}</i>
2019-09-30 15:38:41 +03:00
</span>
<!-- page views -->
2020-04-01 15:33:49 +03:00
{% if site.google_analytics.pv.enabled %}
2019-09-30 15:38:41 +03:00
<i class="far fa-eye fa-fw"></i>
<span id="pv_{{-post.title-}}" class="pageviews">
2019-12-17 14:26:11 +03:00
<i class="fas fa-spinner fa-spin fa-fw"></i>
2019-09-30 15:38:41 +03:00
</span>
{% endif %}
</div>
</div> <!-- .post-review -->
{% endfor %}
</div> <!-- #post-list -->
{% if paginator.total_pages > 0 %}
2020-02-22 02:09:09 +03:00
{% include post-paginator.html %}
2019-09-30 15:38:41 +03:00
{% endif %}