-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwriteups.html
32 lines (31 loc) · 921 Bytes
/
writeups.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
---
layout: default
title: Writeups
permalink: /writeups/
cat: writeups
---
<h1 class="category">{{ page.title }}</h1>
<ul class="posts">
{% for post in site.categories[page.cat].sticky %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }} - Sticky</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
{{ post.excerpt }}
</li>
{% endfor %}
{% for post in site.categories[page.cat] %}
{% assign sticky = false %}
{% for cat in post.categories %}
{% if cat == 'sticky' %}
{% assign sticky = true %}
{% endif %}
{% endfor %}
{% unless sticky %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
{{ post.excerpt }}
</li>
{% endunless %}
{% endfor %}
</ul>