Fix site to categorize and show categories automatically.
This commit is contained in:
24
index.html
24
index.html
@ -1,25 +1,15 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="home">
|
||||
{% for category in site.categories %}
|
||||
<h1 class="page-heading">{{ category }}</h1>
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in site.categories.{{category}} %}
|
||||
<li>
|
||||
<span class="post-meta">{{ post.date | date: "%Y-%m-%d" }}</span>
|
||||
|
||||
<h2>
|
||||
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||
</h2>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% if category.first == "meta" %} {% continue %} {% endif %}
|
||||
<div class="column">
|
||||
{% include category_list.html category=category.first %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
|
||||
|
||||
<div class="site-updates">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user