-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchives.html
executable file
·57 lines (52 loc) · 2.36 KB
/
archives.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
46
47
48
49
50
51
52
53
54
55
56
57
---
layout: default
title: Rod Simpson - Blog Archive
keywords: Rod Simpson, Archive
description: Blog Archive
---
<section class="container clearfix">
<div class="content clearfix">
<div class="clear padding10 clearfix"></div>
<h1 class="bottom_line">Archive</h1>
<p>All of the blog posts can be found on this page. Click on a year or a month to view a snippet of all posts from that period.</p>
<p>This blog archive contains an index of all the posts on this site. Choose a year or month to view posts from that period</p>
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture this_month_num %}{{ post.date | date: "%m" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
{% capture next_month_num %}{{ post.previous.date | date: "%m" }}{% endcapture %}
{% if forloop.first %}
<h2><a class="blog_sidebar_header" href="/{{this_year}}">{{this_year}}</a></h2>
<h3><a href="/{{this_year}}/{{this_month_num}}">{{this_month}}</a></h3>
<ul>
{% endif %}
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
<div class="clear padding30"></div>
{% else %}
{% if this_year != next_year %}
</ul>
<div class="clear padding30"></div>
<h2><a class="blog_sidebar_header" href="/{{next_year}}">{{next_year}}</a></h2>
<h3><a href="/{{next_year}}/{{next_month_num}}">{{next_month}}</a></h3>
<ul>
{% else %}
{% if this_month != next_month %}
</ul>
<div class="clear padding30"></div>
<h3><a href="/{{next_year}}/{{next_month_num}}">{{next_month}}</a></h3>
<ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% assign posts_collate = null %}
<div class="clear"></div>
</div>
<div class="sidebar">
{% include sidebar.html %}
</div>
</section>