-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·70 lines (70 loc) · 3.33 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
title: 月色的部落格
subtitle: 我们来到这个世界上,只是为了看一看月亮
---
<link rel="stylesheet" type="text/css" href="{{ "/assets/css/homepage.css" | prepend: site.baseurl }}">
<div class="container--grid home-container">
<ul layout="rows top-left" id="MixItUpF13DC5">
{% for post in paginator.posts %}
{% if post.post-card-type == 'article' %}
<li class="mix" style="display: inline-block;" data-bound="">
<a href="{{ post.url | prepend: site.baseurl }}">
<div class="card card--article not-visible">
<div class="card-body">
<div class="card-title card-title--articleIfNoImage">{{ post.title }}</div>
<p class="card-description card-description--clamp-14">“{{ post.subtitle }}”</p>
<p class="card-description card-article-preview">
{{ post.content | strip_html | strip_newlines | truncate: 350 }}
</p>
<p></p>
</div>
<div class="card-footer">
<div class="card-footer-wrapper" layout="row bottom-left">
<div class="card-type is-notShownIfHover">{{ post.date | date: "%F"}}</div>
<div class="card-tag is-notShownIfHover">@{{ site.author }}</div>
<div class="card-tag is-shownIfHover">
{% for tag in post.tags %}
{{ tag }}
{% endfor %}
</div>
<div class="card-logo is-shownIfHover" self="right"></div>
</div>
</div>
</div>
</a>
</li>
{% endif %}
{% if post.post-card-type == 'image' %}
<li class="mix">
<a href="{{ post.url | prepend: site.baseurl }}">
<div class="card card--article not-visible" >
<div class="card-body">
<div class="card-title">{{ post.title }}</div>
<div class="card-description card-description--clamp-0">
{{ post.content | strip_html | strip_newlines | truncate: 200 }}
</div>
</div>
<div class="card-hero">
<div class="card-image card-image--size-185" data-url="{{ post.card-image }}"></div>
</div>
<div class="card-footer">
<div class="card-footer-wrapper" layout="row bottom-left">
<div class="card-type is-notShownIfHover">{{ post.date | date: "%F"}}</div>
<div class="card-tag is-notShownIfHover">@{{ site.author }}</div>
<div class="card-tag is-shownIfHover">
{% for tag in post.tags %}
{{ tag }}
{% endfor %}
</div>
<div class="card-logo is-shownIfHover" self="right"></div>
</div>
</div>
</div>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% include pagination.html %}
</div>