2019-09-30 15:38:41 +03:00
|
|
|
---
|
2021-12-01 16:48:57 +03:00
|
|
|
layout: page
|
2021-12-13 16:55:19 +03:00
|
|
|
refactor: true
|
2022-09-12 23:13:15 +03:00
|
|
|
panel_includes:
|
2021-12-01 16:48:57 +03:00
|
|
|
- toc
|
|
|
|
tail_includes:
|
|
|
|
- related-posts
|
|
|
|
- post-nav
|
2021-12-10 16:12:52 +03:00
|
|
|
- comments
|
2019-09-30 15:38:41 +03:00
|
|
|
---
|
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
<h1 data-toc-skip>{{ page.title }}</h1>
|
|
|
|
|
2021-12-04 01:56:33 +03:00
|
|
|
<div class="post-meta text-muted">
|
2022-04-25 20:43:40 +03:00
|
|
|
<!-- published date -->
|
|
|
|
<span>
|
2022-10-18 22:53:47 +03:00
|
|
|
{{ site.data.locales[site.lang].post.posted }}
|
2022-04-25 20:43:40 +03:00
|
|
|
{% include datetime.html date=page.date tooltip=true %}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<!-- lastmod date -->
|
|
|
|
{% if page.last_modified_at %}
|
|
|
|
<span>
|
2022-10-18 22:53:47 +03:00
|
|
|
{{ site.data.locales[site.lang].post.updated }}
|
2022-04-25 20:43:40 +03:00
|
|
|
{% include datetime.html date=page.last_modified_at tooltip=true %}
|
|
|
|
</span>
|
2021-12-04 21:29:40 +03:00
|
|
|
{% endif %}
|
2022-04-25 22:03:34 +03:00
|
|
|
|
2022-11-18 17:16:35 +03:00
|
|
|
{% if page.image %}
|
2022-12-13 16:41:32 +03:00
|
|
|
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
|
|
|
|
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
|
|
|
|
{% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %}
|
2022-04-25 22:03:34 +03:00
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
{% capture w %}
|
2022-04-25 22:03:34 +03:00
|
|
|
{% if page.image.width %}
|
|
|
|
width="{{ page.image.width }}"
|
|
|
|
{% elsif page.image.w %}
|
|
|
|
width="{{ page.image.w }}"
|
|
|
|
{% endif %}
|
2022-12-13 16:41:32 +03:00
|
|
|
{% endcapture %}
|
2022-04-25 22:03:34 +03:00
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
{% capture h %}
|
2022-04-25 22:03:34 +03:00
|
|
|
{% if page.image.height %}
|
|
|
|
height="{{ page.image.height }}"
|
|
|
|
{% elsif page.image.h %}
|
2022-12-13 16:41:32 +03:00
|
|
|
h="{{ page.image.h }}"
|
2022-12-11 02:09:40 +03:00
|
|
|
{% endif %}
|
2022-12-13 16:41:32 +03:00
|
|
|
{% endcapture %}
|
2022-12-11 02:09:40 +03:00
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
{% capture lqip %}
|
2022-12-11 02:09:40 +03:00
|
|
|
{% if page.image.lqip %}
|
|
|
|
lqip="{{ page.image.lqip }}"
|
|
|
|
{% endif %}
|
2022-12-13 16:41:32 +03:00
|
|
|
{% endcapture %}
|
2022-12-11 02:09:40 +03:00
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
<div class="mt-3 mb-3">
|
|
|
|
<img {{ src }} {{ class }} {{ w | strip }} {{ h | strip }} {{ lqip | strip }} {{ alt }}>
|
|
|
|
{%- if page.image.alt -%}
|
2022-07-02 13:05:03 +03:00
|
|
|
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
2022-12-13 16:41:32 +03:00
|
|
|
{%- endif -%}
|
2022-04-25 22:03:34 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-12-01 16:48:57 +03:00
|
|
|
|
2022-04-25 20:43:40 +03:00
|
|
|
<div class="d-flex justify-content-between">
|
2022-09-14 00:05:01 +03:00
|
|
|
<!-- author(s) -->
|
2022-04-25 20:43:40 +03:00
|
|
|
<span>
|
|
|
|
{% if page.author %}
|
2022-09-14 00:05:01 +03:00
|
|
|
{% assign authors = page.author %}
|
|
|
|
{% elsif page.authors %}
|
|
|
|
{% assign authors = page.authors %}
|
2021-12-04 01:56:33 +03:00
|
|
|
{% endif %}
|
2021-12-01 16:48:57 +03:00
|
|
|
|
2022-10-18 22:53:47 +03:00
|
|
|
{{ site.data.locales[site.lang].post.written_by }}
|
2022-04-25 20:43:40 +03:00
|
|
|
|
|
|
|
<em>
|
2022-09-14 00:05:01 +03:00
|
|
|
{% if authors %}
|
|
|
|
{% for author in authors %}
|
|
|
|
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
|
|
|
{% unless forloop.last %}</em>, <em>{% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
|
|
|
{% endif %}
|
2022-04-25 20:43:40 +03:00
|
|
|
</em>
|
|
|
|
</span>
|
2021-12-01 16:48:57 +03:00
|
|
|
|
2022-04-25 20:43:40 +03:00
|
|
|
<div>
|
2021-12-04 01:56:33 +03:00
|
|
|
<!-- page views -->
|
|
|
|
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
|
|
|
|
<span>
|
|
|
|
<em id="pv" class="pageviews">
|
|
|
|
<i class="fas fa-spinner fa-spin fa-fw"></i>
|
|
|
|
</em>
|
2022-10-18 22:53:47 +03:00
|
|
|
{{ site.data.locales[site.lang].post.pageview_measure }}
|
2021-12-01 16:48:57 +03:00
|
|
|
</span>
|
2021-12-04 01:56:33 +03:00
|
|
|
{% endif %}
|
2022-04-25 20:43:40 +03:00
|
|
|
|
|
|
|
<!-- read time -->
|
|
|
|
{% include read-time.html content=content prompt=true %}
|
2021-12-04 01:56:33 +03:00
|
|
|
</div>
|
2021-12-01 16:48:57 +03:00
|
|
|
|
2021-12-04 01:56:33 +03:00
|
|
|
</div> <!-- .d-flex -->
|
2021-12-01 16:48:57 +03:00
|
|
|
|
|
|
|
</div> <!-- .post-meta -->
|
|
|
|
|
|
|
|
<div class="post-content">
|
|
|
|
{{ content }}
|
|
|
|
</div>
|
2019-11-27 12:08:54 +03:00
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
<div class="post-tail-wrapper text-muted">
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2021-12-01 16:48:57 +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 | slugify | url_encode }}/'>{{ category }}</a>
|
|
|
|
{%- unless forloop.last -%}, {%- endunless -%}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!-- tags -->
|
|
|
|
{% if page.tags.size > 0 %}
|
|
|
|
<div class="post-tags">
|
|
|
|
<i class="fa fa-tags fa-fw mr-1"></i>
|
|
|
|
{% for tag in page.tags %}
|
|
|
|
<a href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
|
|
|
class="post-tag no-text-decoration" >
|
|
|
|
{{- tag -}}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
<div class="post-tail-bottom
|
|
|
|
d-flex justify-content-between align-items-center mt-3 pt-5 pb-2">
|
|
|
|
<div class="license-wrapper">
|
2019-11-27 12:08:54 +03:00
|
|
|
|
2022-10-18 22:53:47 +03:00
|
|
|
{% if site.data.locales[site.lang].copyright.license.template %}
|
2021-12-01 16:48:57 +03:00
|
|
|
|
|
|
|
{% capture _replacement %}
|
2022-10-18 22:53:47 +03:00
|
|
|
<a href="{{ site.data.locales[site.lang].copyright.license.link }}">
|
|
|
|
{{ site.data.locales[site.lang].copyright.license.name }}
|
2021-12-01 16:48:57 +03:00
|
|
|
</a>
|
|
|
|
{% endcapture %}
|
|
|
|
|
2022-10-18 22:53:47 +03:00
|
|
|
{{ site.data.locales[site.lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
2021-12-01 16:48:57 +03:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-02-17 18:44:10 +03:00
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
{% include post-sharing.html %}
|
2019-11-27 12:08:54 +03:00
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
</div><!-- .post-tail-bottom -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2021-12-01 16:48:57 +03:00
|
|
|
</div><!-- div.post-tail-wrapper -->
|