-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
23 lines (22 loc) · 1.05 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: home
link1: active
title: "All Posts"
---
{% assign count = 0 %}
{% for post in site.categories.all limit:12 %}
<div class="blog-post">
<h2 class="blog-post-title">{{ post.title }} </h2>
{% if post.subtitle %}<h4 class="blog-post-meta">{{ post.subtitle }}</h4>{% endif %}
{% if post.event %}{% else %}<div class="blog-post-meta location">{% if post.location %}<span></span><p>{{ post.location }}</p>{% else %}Location is not set yet{% endif %}</div>{% endif %}
<p class="blog-post-meta">{{ post.date | date: '%B %d, %Y' }}{% if post.event %} at {% if post.time %}{{ post.time }}{% else %}{{ site.data.basicinfo.event_base_time }}{% endif %} in {% if post.room %}{{ post.room }}{% else %}{{ site.data.basicinfo.event_base_room }}{% endif %}{% endif %} • Category: <strong>{{ post.categories | last }}</strong></p>
{{ post.excerpt }}
<p>
<a class="btn btn-primary btn-lg" href="{{ post.url }}" role="button">Read more »</a>
</p>
</div>
{% assign count = count | plus:1 %}
{% endfor %}
{% if count == 0 %}
<h5>No announcments</h5>
{% endif %}