forked from jwillmer/jekyllDecent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (53 loc) · 2.16 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
---
layout: default
---
<div id="content" class="content">
<h3>Recent Posts</h3>
<ul class="category recent-posts">
{% for post in site.posts limit:5 %}
{% unless post.draft %}
{% if post.menutitle %}
{% assign title = post.menutitle %}
{% else %}
{% assign title = post.title %}
{% endif %}
<li>
<div class="article">
<article class="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<span class="title"><a itemprop="name" href="{{ post.url | absolute_url }}" title="{{ title }}">{{ title }}</a></span>
<time class="date" itemprop="datePublished" datetime="{{post.date | date: "%Y-%m-%d"}}">{{post.date | date: "%B %e, %Y"}}</time>
</header>
</article>
</div>
</li>
{% endunless %}
{% endfor %}
</ul>
{% assign sorted_cats = site.categories | sort %}
{% for category in sorted_cats %}
{% assign sorted_posts = category[1] | reversed %}
<h3 id="{{category[0] | uri_escape | downcase | slugify }}">{{category[0] | camelcase }}</h3>
<ul class="category {{category[0] | uri_escape | downcase | slugify}}">
{% for post in sorted_posts %}
{% unless post.draft %}
{% if post.menutitle %}
{% assign title = post.menutitle %}
{% else %}
{% assign title = post.title %}
{% endif %}
<li>
<div class="article">
<article class="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<span class="title"><a itemprop="name" href="{{ post.url | absolute_url }}" title="{{ title }}">{{ title }}</a></span>
<time class="date" itemprop="datePublished" datetime="{{post.date | date: "%Y-%m-%d"}}">{{post.date | date: "%B %e, %Y"}}</time>
</header>
</article>
</div>
</li>
{% endunless %}
{% endfor %}
</ul>
{% endfor %}
</div>