forked from programminghistorian/jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
40 lines (32 loc) · 1.25 KB
/
blog.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
---
layout: blank
title: The Programming Historian Blog
redirect_from: /news.html
---
<h1>PH Blog</h1>
The <i>Programming Historian</i> blog is our space to share news about the project, ideas for how you might use technology in your work, and exciting examples of the Programming Historian applied in the real world.
Subscribe to the <a href="./feed.xml">RSS feed</a> for new blog posts.
{% for post in site.posts %}
<hr/>
<div class="blog-header">
<h4 class="above-title">{{post.date | date: "%B %-d, %Y"}}</h4>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<h3 class="author-name">
{% assign authorCount = post.authors | size %}
{% if authorCount == 1 %}
{{ post.authors | first }}
{% else %}
{% for author in post.authors %}
{% if forloop.first %}
{{ author }}
{% elsif forloop.last %}
and {{ author }}
{% else %}
, {{ author }}
{% endif %}
{% endfor %}
{% endif %}
</h3>
{{ post.excerpt | remove: '</p>' }} <a href="{{ post.url }}"><!--Read the full post! »--></a>
</div>
{% endfor %}