-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
executable file
·37 lines (33 loc) · 1.26 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
---
layout: content
title: Blog
---
<div class="contentColumn">
<h2>Blog</h2>
{% assign first_post = site.posts.first %}
{% if first_post %}
<div class="blogPost">
<h3><a href="{{ first_post.url }}">{{ first_post.title }}</a> <span> - {{ first_post.date | date_to_string }}</span></h3>
<h4>By {{ first_post.author }} on {{ first_post.category }}</h4>
{{ first_post.content }}
</div>
{% else %}
<p>No posts as of yet.</p>
{% endif %}
<h3>Archive</h3>
{% if site.posts != empty %}
<ul class="blogArchive">
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a> <span> - {{ post.date | date_to_string }}</span></li>
{% endfor %}
</ul>
{% else %}
<p>No posts as of yet.</p>
{% endif %}
</div>
<div class="tweetsColumn" id="twitter_div">
<h2>Latest Tweets</h2>
<a class="twitter-timeline" href="https://twitter.com/lmmenge" data-widget-id="393182551876960256">Tweets by @lmmenge</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="clear"></div>