-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
37 lines (35 loc) · 1.22 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: default
title: "Coursehacker's Class Blog"
---
<div id="home">
<ul class="posts">
{% for post in site.posts %}
{% if post.categories contains "assignment" %}
{% else %}
{% for authors in post.author %}
{% if {{site.authors[authors].prof}} == true %}
<strong>
{% endif %}
{% endfor %}
<li><strong><span>{{ post.date | date_to_string }}</span> »</strong> <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> by
{% assign authorCount = post.author | size %}
{% if authorCount == 0 %}
{% elsif authorCount == 1 %}
{{ post.author | first }}
{% else %}
{% for authors in post.author %}{% if forloop.first %}{% assign authored = site.authors[authors] %}
{{ authored.name }}{% elsif forloop.last %}
{% assign authored = site.authors[authors] %}
and {{ authored.name }}{% else %}{% assign authored = site.authors[authors] %}, {{ authored.name }}{% endif %}{% endfor %}
{% endif %}
</li>
{% for authors in post.author %}
{% if {{site.authors[authors].prof}} == true %}
</strong>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</div>