Skip to content

Commit db923f2

Browse files
committed
fix: fixed post layout/template
1 parent d836c6e commit db923f2

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

_includes/post.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<article class="post card" itemscope itemtype="http://schema.org/BlogPosting">
22
<div class="card-body">
3-
<header>
3+
<header class="post-header">
44
<h1 class="card-title"><a href="{{ page.url }}">{{ page.title }}</a></h1>
55

66
<div class="post-meta">
7-
<span class="meta-box">
7+
<span class="meta-box" itemscope itemtype="http://schema.org/Person">
88
<span class="fa fa-user meta-icon"></span>
9-
{{ page.author }}
9+
<span itemprop="name">{{ page.author }}</span>
1010
</span>
1111
<span class="ml-2">
1212
<span class="fa fa-calendar meta-icon"></span>
13-
<time datetime="{{ page.date }}">
13+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
1414
{{ page.date | date: "%F %R %Z" }}
1515
</time>
1616
</span>
1717
</div>
1818
</header>
1919

20-
<div class="content py-3">
20+
<div class="post-content" itemprop="articleBody">
2121
{{ include.content }}
2222
</div>
2323

_layouts/post.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,4 @@
33
---
44
<div class="wrapper">
55
{% include post.html content=page.content %}
6-
<hr>
7-
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
8-
9-
<header class="post-header">
10-
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
11-
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
12-
</header>
13-
14-
<div class="post-content" itemprop="articleBody">
15-
{{ content }}
16-
</div>
17-
18-
</article>
196
</div>

0 commit comments

Comments
 (0)