-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (85 loc) · 3.51 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
layout: default
---
<div id="filter_div" align="left">
Filter Keyword
<input type="text" id="input_filter">
<button type="button" onClick="filter_post('category', getElementById('input_filter').value.toLowerCase())">Category</button>
<button type="button" onClick="filter_post('title', getElementById('input_filter').value.toLowerCase())">Title</button>
<button type="button" onClick="filter_post('keyword', getElementById('input_filter').value.toLowerCase())">Keyword</button>
{% for my_page in site.pages %}
{% if my_page.title == "About" %}
<a class="page-link" href="{{ my_page.url | prepend: site.baseurl | append: '#search_help' }}">Search Help</a>
{% endif %}
{% endfor %}
<br /><br />
</div>
<hr /><br />
<div class="home">
<h1 class="page-heading">Top Posts</h1>
<ul class="post-list">
{% for post in site.posts %}
{% if post.ontop == true %}
<li class="post_item" data-category="{{ post.categories }}" data-title="{{ post.title }}" data-keyword="{{ post.paper_keyword }}">
<span class="post-meta">
<strong>[Top]</strong>
{% if post.layout == "paper-summary" %}
<strong>[Paper Review]</strong>
{% endif %}
{{ post.date | date: "%b %-d, %Y" }}
{% if post.paper_year %}
, Paper published in {{ post.paper_year }}
{% endif %}
</span>
<h2 style="display: inline">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
{% if post.layout == "paper-summary" %}
<strong>Keyword: </strong> {{ post.paper_keyword }}
{% endif %}
</li>
{% endif %}
{% endfor %}
<hr />
<br />
<h1 class="page-heading">Posts</h1>
{% for post in paginator.posts %}
<li class="post_item" data-category="{{ post.categories }}" data-title="{{ post.title }}" data-keyword="{{ post.paper_keyword }}">
<span class="post-meta">
{% if post.layout == "paper-summary" %}
<strong>[Paper Review]</strong>
{% elsif post.layout == "post" %}
<strong>[Post]</strong>
{% endif %}
{{ post.date | date: "%b %-d, %Y" }}
{% if post.paper_year %}
, Paper published in {{ post.paper_year }}
{% endif %}
</span>
<h2 style="display: inline">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
{% if post.layout == "paper-summary" %}
<strong>Keyword: </strong> {{ post.paper_keyword }}
{% endif %}
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<div class="pagination" style="text-align:center">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
<p class="rss-subscribe">Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
<p class="rss-subscribe">Switch to <a href="{{ "/index-small.html" | prepend: site.baseurl }}">Small</a></p>
<p class="rss-subscribe">Switch to <a href="{{ "/index-all.html" | prepend: site.baseurl }}">All</a></p>
</div>