forked from itenium-be/blog-posts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (24 loc) · 717 Bytes
/
index.html
File metadata and controls
28 lines (24 loc) · 717 Bytes
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
---
layout: default
title: itenium Blog
---
<div class="home">
<h1 class="page-heading">Blog Posts</h1>
{% assign posts_by_category = site.posts | group_by: "categories" %}
{% for category_group in posts_by_category %}
<h2>{{ category_group.name | capitalize }}</h2>
<ul class="post-list">
{% for post in category_group.items %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h3>
{% if post.desc %}
<p>{{ post.desc }}</p>
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
</div>