-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.html
52 lines (47 loc) · 1.58 KB
/
archive.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
---
layout: default
inline_css:
- archive
redirect_from:
- /index/
---
<div id="index">
<h1>Index</h1>
<h1>Pages</h1>
<table>
{% for page in site.pages %}
{% if page.category == "project" %}
<tr>
<td class="page"><a href="{{ page.url | prepend: site.baseurl }}"><h1>{{ page.title | split: '-' | first }}</h1><p>{{ page.summary }}</p></a></td>
</tr>
{% endif %}
{% endfor %}
</table>
<h1>Categories</h1>
<p>
{% assign categoryArray = '' | split:'@' %}
{% for category in site.category %}
{% capture link %}<a href="{{ category.permalink }}">{{ category.category }}</a>{% endcapture %}
{% assign categoryArray = categoryArray | push: link %}
{% endfor %}
{{ categoryArray | array_to_sentence_string }}
</p>
<p> RSS Feeds: <a href="/feed.xml">Main Posts</a>, <a href="/microfeed.xml">Daily Posts</a>, <a href="/all.xml">Everything</a></p>
<h1>Posts</h1>
{% assign grouped_posts = site.posts | concat: site.micro | sort: 'date' | reverse | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in grouped_posts %}
<h2 class="centered">{{ year.name }}</h1>
<table>
{% for post in year.items %}
<tr class="{% if post.micro == true %}micro{% else %}post{% endif %}" >
<td><h1><time>{{ post.date | date: "%d %b" }}</time></h1></td>
<td>{% for category in post.categories %}
<p><a href="/{{ category | replace: ' ', '-' | downcase }}/">{{ category }}</a></p>
{% endfor %}
</td>
<td><a href="{{ post.url | prepend: site.baseurl }}"><h1>{{ post.title }}</h1><p>{{ post.summary }}</p></a></td>
</tr>
{% endfor %}
</table>
{% endfor %}
</div>