-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move index.html to _layouts/home.html
- Loading branch information
Showing
2 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
layout: default | ||
--- | ||
{% assign posts_count = paginator.posts | size %} | ||
|
||
<div class="home"> | ||
{% if posts_count > 0 %} | ||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post py3"> | ||
<p class="post-meta">{{ post.date | date: site.date_format }}</p> | ||
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a> | ||
<span class="post-summary"> | ||
{% if post.summary %} | ||
{{ post.summary }} | ||
{% else %} | ||
{{ post.excerpt }} | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% include pagination.html %} | ||
{% else %} | ||
<h1 class='center'>{{ site.text.index.coming_soon }}</h1> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,3 @@ | ||
--- | ||
layout: default | ||
layout: home | ||
--- | ||
{% assign posts_count = paginator.posts | size %} | ||
|
||
<div class="home"> | ||
{% if posts_count > 0 %} | ||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post py3"> | ||
<p class="post-meta">{{ post.date | date: site.date_format }}</p> | ||
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a> | ||
<span class="post-summary"> | ||
{% if post.summary %} | ||
{{ post.summary }} | ||
{% else %} | ||
{{ post.excerpt }} | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% include pagination.html %} | ||
{% else %} | ||
<h1 class='center'>{{ site.text.index.coming_soon }}</h1> | ||
{% endif %} | ||
</div> |