-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
34 lines (32 loc) · 1.08 KB
/
Copy patharchive.html
File metadata and controls
34 lines (32 loc) · 1.08 KB
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
---
title: Archive
layout: default
description: "Browse all posts by date"
no-catalog: true
nav-order: 1
---
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<h1 class="page-heading">Archive</h1>
{% assign posts_by_year = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in posts_by_year %}
<div class="git-log-year">
<h2 class="archive-year">{{ year.name }} <span class="archive-year-count">({{ year.items | size }})</span></h2>
<div class="git-log-entries">
{% for post in year.items %}
<div class="git-log-entry">
<span class="git-hash">{{ post.url | slugify | truncate: 7, "" }}</span>
<time class="git-date">{{ post.date | date: "%Y-%m-%d" }}</time>
<a href="{{ post.url | prepend: site.baseurl }}" class="git-message">{{ post.title }}</a>
{% if post.tags.first %}
<span class="git-branch">({{ post.tags | first | downcase }})</span>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>