aboutsummaryrefslogtreecommitdiff
path: root/_layouts/home.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/home.html')
-rw-r--r--_layouts/home.html67
1 files changed, 9 insertions, 58 deletions
diff --git a/_layouts/home.html b/_layouts/home.html
index 44b51e6..5fea726 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -1,63 +1,14 @@
---
-layout: base
+layout: default
---
-<div class="home">
- {%- if page.title -%}
- <h1 class="page-heading">{{ page.title }}</h1>
- {%- endif -%}
-
- {{ content }}
-
-
- {% if site.paginate %}
- {% assign posts = paginator.posts %}
- {% else %}
- {% assign posts = site.posts %}
- {% endif %}
-
-
- {%- if posts.size > 0 -%}
- {%- if page.list_title -%}
- <h2 class="post-list-heading">{{ page.list_title }}</h2>
- {%- endif -%}
- <ul class="post-list">
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
- {%- for post in site.posts limit:5 -%}
- <li>
- <span class="post-meta">{{ post.date | date: date_format }}</span>
- <h3>
- <a class="post-link" href="{{ post.url | relative_url }}">
- {{ post.title | escape }}
- </a>
- </h3>
- {%- if site.show_excerpts -%}
- {{ post.excerpt }}
- {%- endif -%}
- </li>
- {%- endfor -%}
- </ul>
-
- {% if site.paginate %}
- <div class="pager">
- <ul class="pagination">
- {%- if paginator.previous_page %}
- <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
- {%- else %}
- <li><div class="pager-edge">•</div></li>
- {%- endif %}
- <li><div class="current-page">{{ paginator.page }}</div></li>
- {%- if paginator.next_page %}
- <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
- {%- else %}
- <li><div class="pager-edge">•</div></li>
- {%- endif %}
- </ul>
- </div>
- {%- endif %}
-
- <a href="/posts">See All Posts &rarr;</a>
-
- {%- endif -%}
+{{ content }}
+{% for post in site.posts limit:5 %}
+<div class="post">
+ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
+ <span class="post-date">{{ post.date | date: "%B %-d, %Y" }}</span>
+ {{ post.excerpt }}
</div>
+{% endfor %}
+