-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_hold.html
52 lines (46 loc) · 2.02 KB
/
index_hold.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
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts</h1>
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<h2 class="posts-index">
{% if post.link %}
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }} [Link] </a>
{% else %}
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }} </a>
{% endif %}
<!-- <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> -->
</h2>
<span class="post-meta">{{ post.date | date: "%Y-%m-%d" }} {% if post.category %}• 📁 <a href="/archive/#{{post.category | url_encode}}" title="Category Archive">{{post.category | capitalize}}</a> {% endif %}</span>
{% if post.summary %}
<p> {{ post.summary}} </p>
<p><a href="{{ post.url | prepend: site.baseurl }}"> more →</a> </p>
{% else %}
<!-- full text, use summary meta data if front page should be truncated-->
{{ post.content }}
<!-- truncate posts & add "more →"-->
<!-- {{ post.content | truncatewords: 150, ' . . .'}}
{% assign wordcount = {{post.content | number_of_words}} %}
{% if wordcount > 150 %}
<p><a href="{{ post.url | prepend: site.baseurl }}"> more →</a> </p>
{% endif %} -->
{% endif %}
</li>
<!-- <hr> -->
{% endfor %}
</ul>
<div class='page-nav'>
<!-- if the previous/newer page existes -->
{% if paginator.previous_page %}
<a rel="left" class="left" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">← Newer</a>
{% endif %}
<!-- if the next/older page existes -->
{% if paginator.next_page %}
<a rel="right" class="right" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older →</a>
{% endif %}
</div>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>