-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (35 loc) · 1.31 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
---
layout: home-page
---
<!--<p>aaa:{{ site.posts | size }}</p> </span>aa:{{ site.categories | size }}</span>
{% assign year = 3 %}
{% for category in site.categories %}
{% assign year = year | plus: 1 %}
<p>aaa:{{year}}</p>
{% endfor %}
-->
{% assign count = 0 %}
<ol class="post-card-box clearfix">
{% for post in paginator.posts %}
<!--{% if post.test1%}
{% assign count = count | plus: 1 %}
<p>aaa:{{count}}</p>
{% endif %}-->
<li>
<div class="post-card">
<a href="{{post.url | prepend: site.baseurl}}" class="post-card-image" style="background-image: url( {{ "/assets/img/" | prepend: site.baseurl | append : post.img}} )">
</a>
<div class="post-card-body">
<div class="post-card-stricp" >
<a href="{{post.url | prepend: site.baseurl}}" style="text-decoration: none; color: inherit;margin-right:20px;">{{ post.content | strip_html | strip_newlines | truncate: 100 }}</a>
</div>
{% for tag in post.tags %}
<!--<a href="{{site.baseurl}}/tags#{{tag}}" class="tag">| {{ tag }}</a>-->
<a href="{{site.baseurl}}/tags#{{tag}}" class="tag">{{ tag }} </a>
{% endfor %}
<a href="{{post.url | prepend: site.baseurl}}" class="post-card-link"><h3 class="post-card-title">{{post.title}}</h3></a>
</div>
</div>
</li>
{% endfor %}
</ol>