-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.html
executable file
·34 lines (32 loc) · 1005 Bytes
/
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
---
layout: default
---
{% assign posts_count = (paginator.posts | size) %}
<form class="search-form" action="/search" method="get">
<label for="search_box"></label>
<input type="text" id="search-box" name="query" placeholder="검색">
</form>
<div class="home">
{% if posts_count > 0 %}
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
<h3 class="post-title">{{ post.title }}</h3>
</a>
<p class="post-summary">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
<p class="post-meta">{{ post.date | date: site.date_format }} | {{ post.author }}</p>
</div>
{% endfor %}
</div>
{% include pagination.html %}
{% else %}
<h1 class='center'>{{ site.text.index.coming_soon }}</h1>
{% endif %}
</div>