-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (49 loc) · 2.57 KB
/
index.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
---
layout: main
indetity: true
---
<main class="home" id="post" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div id="grid" class="row flex-grid">
{% for post in paginator.posts %}
<article class="box-item" itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
<span class="category">
<a href="{{ site.url }}{{ site.baseurl }}/category/{{ post.category }}">
<span>{{ post.category }}</span>
</a>
</span>
<div class="box-body">
<div class="cover">
{% include new-post-tag.html date=post.date %}
<a href="{{ post.url | prepend: site.baseurl }}" {%if isnewpost %}class="new-post"{% endif %}>
{% if post.image %}
<img src="/assets/img/placeholder.png" data-url="{% if post.image contains "://" %}{{ post.image }}{% else %}{{ post.image | absolute_url }}{% endif %}" class="preload">
{% else %}
<img src="/assets/img/placeholder.png" data-url="/assets/img/off.jpg" class="preload">
{% endif %}
</a>
</div>
<div class="box-info">
<meta itemprop="datePublished" content="{{ post.date | date_to_xmlschema }}">
<time itemprop="datePublished" datetime="{{ post.date | date_to_xmlschema }}" class="date">
{% include date.html date=post.date %}
</time>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title" itemprop="name">
{{ post.title }}
</h2>
</a>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<p class="description">{{ post.introduction }}</p>
</a>
<div class="tags">
{% for tag in post.tags %}
<a href="{{ site.baseurl}}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
</div>
</article>
{% endfor %}
</div>
{% include pagination.html %}
</main>