-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (68 loc) · 2.73 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: main
title: Home
---
<div class="posts">
<h3>Top Posts</h3>
{% assign rawtags = "" %}
{% for post in site.posts %}
{% assign ttags = post.tags | join:'|' | append:'|' %}
{% assign rawtags = rawtags | append:ttags %}
{% endfor %}
{% assign rawtags = rawtags | split:'|' | sort %}
{% assign tags = "" %}
{% for tag in rawtags %}
{% if tag != "" %}
{% if tags == "" %}
{% assign tags = tag | split:'|' %}
{% endif %}
{% unless tags contains tag %}
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
{% endunless %}
{% endif %}
{% endfor %}
{% for post in site.posts limit:6 %}
{% if post.specifics.noteworthy %}
{% unless post.next %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% endif %}
{% endunless %}
<div class="post-list">
<div class="post-list-date"><small>{{ post.date | date: "%b %d" }}</small></div>
<a href="{{ post.url }}">{{ post.title }}</a>
<div class="post-list-desc">{{ post.description }}</div>
<div class="post-list-tags">
{% for tag in post.tags %}
<a id="{{ tag | slugify }}" class="tag-anchor" href="{{ site.url }}{{ site.baseurl }}/tagged#{{ tag | slugify }}"><i class="fa fa-tag muted"></i> {{ tag }}</a>
{% endfor %}
</div>
</div>
{% else %}
{% endif %}
{% endfor %}
</div>
<hr>
<div class="features">
<h3>Projects and Memoirs</h3>
<div class="feature-list">
{% assign index_grid_limit = 10 %}
{% assign listing = site.features | sort:"date" | reverse %}
{% for feature in listing limit:index_grid_limit %}
{% if feature.specifics.career or feature.specifics.project %}
<div class="feature-thumb" style="background-image: url({{ site.url }}/{{ site.assets.features }}/{{ feature.specifics.images }}/thumb.png)">
<a href="{{ feature.url }}">
<div class="feature-thumb-overlay">
<strong>{{ feature.title }}</strong>
</div>
</a>
</div>
{% else %}
{% endif %}
{% endfor %}
</div>
</div>