2019-09-30 15:38:41 +03:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
# The posts' 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
|
|
|
|
---
|
|
|
|
|
2019-11-27 22:58:31 +03:00
|
|
|
<div class="row">
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
<div id="post-wrapper" class="col-12 col-lg-11 col-xl-8">
|
2020-02-22 02:16:58 +03:00
|
|
|
|
2019-11-27 20:59:01 +03:00
|
|
|
<div class="post pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
2020-02-22 02:16:58 +03:00
|
|
|
|
2019-09-30 15:38:41 +03:00
|
|
|
<h1 data-toc-skip>{{ page.title }}</h1>
|
2020-02-22 02:16:58 +03:00
|
|
|
|
2019-09-30 15:38:41 +03:00
|
|
|
<div class="post-meta text-muted d-flex flex-column">
|
2020-04-06 21:11:50 +03:00
|
|
|
<!-- Published date and author -->
|
2019-09-30 15:38:41 +03:00
|
|
|
<div>
|
2020-04-06 21:11:50 +03:00
|
|
|
Posted
|
2020-07-23 17:23:31 +03:00
|
|
|
{% include timeago.html date=page.date tooltip=true %}
|
2020-04-06 21:11:50 +03:00
|
|
|
by
|
|
|
|
<span class="author">
|
|
|
|
{% if page.author %}
|
|
|
|
{{ page.author }}
|
2020-07-23 10:33:42 +03:00
|
|
|
{% else %}
|
2020-04-06 21:11:50 +03:00
|
|
|
{{ site.author }}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- lastmod -->
|
2020-04-09 22:15:51 +03:00
|
|
|
{%- capture filename -%}
|
|
|
|
{{ page.url | split: "/" | last }}
|
|
|
|
{%- endcapture -%}
|
|
|
|
|
2020-07-14 16:32:01 +03:00
|
|
|
{% for item in site.data.updates %}
|
|
|
|
{% assign encode_filename = item.filename | url_encode %}
|
|
|
|
{% if filename == encode_filename %}
|
|
|
|
{% assign lastmod = item.lastmod %}
|
|
|
|
{% break %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-04-09 22:15:51 +03:00
|
|
|
|
2020-07-14 16:32:01 +03:00
|
|
|
{% if lastmod %}
|
2020-04-06 21:11:50 +03:00
|
|
|
<div>
|
|
|
|
Updated
|
2020-07-23 17:23:31 +03:00
|
|
|
{% include timeago.html date=lastmod class="lastmod" tooltip=true %}
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
2020-04-06 21:11:50 +03:00
|
|
|
{% endif %}
|
2019-11-25 15:56:50 +03:00
|
|
|
|
2019-09-30 15:38:41 +03:00
|
|
|
<!-- page views -->
|
2020-04-01 15:33:49 +03:00
|
|
|
{% if site.google_analytics.pv.enabled %}
|
2019-09-30 15:38:41 +03:00
|
|
|
<div>
|
2020-04-06 21:11:50 +03:00
|
|
|
<span id="pv" class="pageviews"><i class="fas fa-spinner fa-spin fa-fw"></i></span>
|
|
|
|
views
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-11-25 15:56:50 +03:00
|
|
|
|
2019-09-30 15:38:41 +03:00
|
|
|
</div> <!-- .post-meta -->
|
|
|
|
|
|
|
|
<div class="post-content">
|
|
|
|
{% if page.image %}
|
2020-04-28 21:54:18 +03:00
|
|
|
<img src="{{ page.image }}">
|
2019-12-23 20:36:49 +03:00
|
|
|
{% endif %}
|
2020-06-01 11:51:32 +03:00
|
|
|
<!-- Using lozad. See: <https://github.com/ApoorvSaxena/lozad.js#usage> -->
|
2020-05-28 23:51:20 +03:00
|
|
|
{% if content contains '<img src=' %}
|
2020-06-01 11:51:32 +03:00
|
|
|
{{ content | replace: '<img src=', '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src=' }}
|
2020-05-28 23:51:20 +03:00
|
|
|
{% else %}
|
|
|
|
{{ content }}
|
|
|
|
{% endif %}
|
2019-11-24 12:38:41 +03:00
|
|
|
</div>
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
<div class="post-tail-wrapper text-muted">
|
|
|
|
|
2020-04-06 21:11:50 +03:00
|
|
|
<!-- categories -->
|
|
|
|
{% if page.categories.size > 0 %}
|
|
|
|
<div class="post-meta mb-3">
|
|
|
|
<i class="far fa-folder-open fa-fw mr-1"></i>
|
|
|
|
{% for category in page.categories %}
|
|
|
|
<a href='{{ site.baseurl }}/categories/{{ category | replace: ' ', '-' | downcase | url_encode }}/'>{{ category }}</a>
|
|
|
|
{%- unless forloop.last -%}, {%- endunless -%}
|
|
|
|
{% endfor %}
|
2020-02-17 18:44:10 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-04-06 21:11:50 +03:00
|
|
|
<!-- tags -->
|
2019-09-30 15:38:41 +03:00
|
|
|
{% if page.tags.size > 0 %}
|
2020-04-06 21:11:50 +03:00
|
|
|
<div class="post-tags">
|
|
|
|
<i class="fa fa-tags fa-fw mr-1"></i>
|
2019-09-30 15:38:41 +03:00
|
|
|
{% for tag in page.tags %}
|
2019-12-28 11:58:02 +03:00
|
|
|
<a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/"
|
2019-09-30 15:38:41 +03:00
|
|
|
class="post-tag no-text-decoration" >
|
|
|
|
{{- tag -}}
|
2019-11-28 19:04:01 +03:00
|
|
|
</a>
|
2019-09-30 15:38:41 +03:00
|
|
|
{% endfor %}
|
2019-11-25 15:56:50 +03:00
|
|
|
</div>
|
2019-09-30 15:38:41 +03:00
|
|
|
{% endif %}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
|
|
|
<div class="post-tail-bottom
|
|
|
|
d-flex justify-content-between align-items-center pt-5 pb-2">
|
2020-04-06 21:11:50 +03:00
|
|
|
{% if site.data.rights.license %}
|
2020-02-16 22:01:48 +03:00
|
|
|
<div class="license-wrapper">
|
2020-04-06 21:11:50 +03:00
|
|
|
This post is licensed under
|
|
|
|
<a href="{{ site.data.rights.license.link }}">{{ site.data.rights.license.name }}</a>
|
|
|
|
by the author.
|
2020-02-16 22:01:48 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% include post-sharing.html %}
|
|
|
|
|
|
|
|
</div><!-- .post-tail-bottom -->
|
|
|
|
|
2019-11-25 15:56:50 +03:00
|
|
|
</div><!-- div.post-tail -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2019-11-27 12:08:54 +03:00
|
|
|
</div> <!-- .post -->
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
</div> <!-- #post-wrapper -->
|
2019-11-27 12:08:54 +03:00
|
|
|
|
|
|
|
{% include panel.html %}
|
|
|
|
|
|
|
|
</div> <!-- .row -->
|
|
|
|
|
2019-11-27 22:58:31 +03:00
|
|
|
<div class="row">
|
2019-12-31 18:17:27 +03:00
|
|
|
<div id="post-extend-wrapper" class="col-12 col-lg-11 col-xl-8">
|
2019-11-27 12:08:54 +03:00
|
|
|
|
2019-11-27 20:59:01 +03:00
|
|
|
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
|
2020-02-16 22:01:48 +03:00
|
|
|
|
|
|
|
{% include post-nav.html %}
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
{% if site.disqus.comments and page.comments %}
|
|
|
|
{% include disqus.html %}
|
|
|
|
{% endif %}
|
2019-11-27 12:08:54 +03:00
|
|
|
|
2020-02-17 18:44:10 +03:00
|
|
|
{% include related-posts.html %}
|
|
|
|
|
2019-11-27 12:08:54 +03:00
|
|
|
</div> <!-- .pl-1 pr-1 -->
|
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
</div> <!-- #post-extend-wrapper -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2019-11-25 15:56:50 +03:00
|
|
|
</div> <!-- .row -->
|
2019-11-24 12:38:41 +03:00
|
|
|
|
2019-12-01 20:15:55 +03:00
|
|
|
{% include lozad.html %}
|