Fix site to categorize and show categories automatically.
This commit is contained in:
13
_includes/category_list.html
Normal file
13
_includes/category_list.html
Normal file
@ -0,0 +1,13 @@
|
||||
<h1 class="page-heading">{{ include.category | capitalize }}</h1>
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in site.categories[include.category] limit:5 %}
|
||||
<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>
|
||||
|
@ -1,9 +1,6 @@
|
||||
<footer class="site-footer">
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<h2 class="footer-heading">{{ site.title }}</h2>
|
||||
|
||||
<div class="footer-col-wrapper">
|
||||
<div class="footer-col footer-col-1">
|
||||
<ul class="contact-list">
|
||||
|
Reference in New Issue
Block a user