This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
/
post.html
61 lines (57 loc) · 2.29 KB
/
post.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
layout: default
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
{%- if page.description -%}
<p class="page-description">{{ page.description | escape }}</p>
{%- endif -%}
<p class="post-meta post-meta-title">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif %}
• {% include reading_time.html -%}
</p>
{% if page.categories.size > 0 and site.show_tags %}
<p class="category-tags"><i class="fas fa-tags category-tags-icon"></i></i>
{% for category in page.categories %}
<a class="category-tags-link" href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</p>
{% endif %}
{% if page.layout == 'notebook' %}
{% if page.badges or page.badges == nil %}
<div class="pb-5 d-flex flex-wrap flex-justify-end">
{% include notebook_github_link.html %}{% include notebook_colab_link.html %}
</div>
{% endif -%}
{% endif -%}
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ content | toc }}
</div>
{%- if page.comments -%}
{%- include utterances.html -%}
{%- endif -%}
{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>