forked from silshack/spring2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (40 loc) · 1.39 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
38
39
40
41
42
---
layout: default
title: "Coursehacker's Class Blog"
---
<div id="home">
<ul class="posts">
{% for post in site.posts %}
{% assign print = "true" %}
{% for category in site.special-categories %}
{% if post.categories contains category %}
{% assign print = false %}
{% endif %}
{% endfor %}
{% if print %}
{% 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>