-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
45 lines (42 loc) · 1.38 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
41
42
43
44
45
---
title: Blog Home
layout: default
stylesheets: []
permalink: /blog/index.html
comments: true
---
<!-- ********** CONTENT *********** -->
<div class="wrapper">
<h1 id="home-page">Blog</h1>
<div class="content">
This is a collection of mini-projects, thoughts, and ideas that I happen to stumble upon in my everyday life.<br/>
</div>
<ul class="card-listing">
{% assign blogPosts = site.blog | where_exp: "item", "item.exclude != true" | sort: 'date' %}
{% for blogPost in blogPosts reversed %}
{% if blogPost.shortTitle %}
{% assign shortTitle = blogPost.shortTitle %}
{% else %}
{% assign shortTitle = blogPost.title %}
{% endif %}
{% assign m = blogPost.date | date: "%B" %}
<li class="type-{{blogPost.postType}}">
<div class="headerWrap">
<h3 style="text-align: left;"><a href="{{blogPost.url}}">{{shortTitle}}</a></h3>
<p>
{% case m %}
{% when 'May' or June' or 'July' %} {{m}}
{% when 'September' %} Sept.
{% else %}{{ blogPost.date | date: "%b" }}.
{% endcase %}
{{blogPost.date | date: " %-d, %Y"}}
</p>
</div>
<div class="details">
<p><a href="{{blogPost.url}}">{{blogPost.description}}</a></p>
</div>
</li>
{% endfor %}
</ul>
</div>
<!-- ********** CONTENT *********** -->