-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowse.html
67 lines (54 loc) · 1.38 KB
/
browse.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
---
layout: page
title: Browse
sort_order: 30
permalink: /browse/
---
{%- if site.pages.size > 0 -%}
<h1>Pages</h1>
<ul>
{%- for my_page in site.pages -%}
{%- comment -%}
Skip several kinds of pages in the nav bar:
- Index page (gets marked as a page by jekyll-paginate-v2 plugin)
- Autogen'd pages (created by jekyll-paginate-v2 plugin)
- Pages with no title
{%- endcomment -%}
{%- if my_page.url == "/index.html" -%}
{%- continue -%}
{%- endif -%}
{%- if my_page.autogen -%}
{%- continue -%}
{%- endif -%}
{%- unless my_page.title -%}
{%- continue -%}
{%- endunless -%}
<li>
<a target="_blank" href="{{ my_page.url | relative_url }}">
{{- my_page.title | escape -}}
</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
{%- if site.posts.size > 0 -%}
<h1>Posts</h1>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<ul class="atom-post-list">
{%- for post in site.posts -%}
<li>
<div class="atom-post-list-entry">
<a target="_blank" href="{{ post.url | relative_url }}">
{{- post.title | escape -}}
</a>
​
<span class="post-meta">
(<time datetime="{{ post.date | date_to_xmlschema }}">
{{- post.date | date: date_format -}}
</time>)
</span>
</div>
</li>
{%- endfor -%}
</ul>
{%- endif -%}