Skip to content

Commit e77ec70

Browse files
committed
remove related post
1 parent 2d9dd5b commit e77ec70

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

_layouts/post.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="post">
6+
<h1 class="post-title">{{ page.title }}</h1>
7+
<div class="post-meta">
8+
{%- assign date_format = site.date_format | default: "%-d %b %Y" -%}
9+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: date_format }}</time>
10+
{%- if page.last_modified_at -%}
11+
<span> ~ </span>
12+
{%- assign mdate = page.last_modified_at | date_to_xmlschema -%}
13+
<time datetime="{{ mdate }}" itemprop="dateModified">
14+
{{ mdate | date: date_format }}
15+
</time>
16+
{%- endif -%}
17+
{%- if page.author -%}
18+
<span></span>
19+
{% for author in page.author %}
20+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
21+
{{ author }}
22+
</span>
23+
{%- if forloop.last == false %}, {% endif -%}
24+
{% endfor %}
25+
{%- endif -%}
26+
</div>
27+
28+
{{ content }}
29+
30+
{% if page.tags %}
31+
{% include post-tags.html %}
32+
{% endif %}
33+
34+
{% if jekyll.environment == "production" and site.disqus and page.comments != false %}
35+
{% include disqus.html %}
36+
{% endif %}
37+
</article>

0 commit comments

Comments
 (0)