forked from crowdint/blog.crowdint.com-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (83 loc) · 3.15 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
---
layout: default
title: Blog
---
{% for post in paginator.posts %}
<div class="post prepend-1">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p class="author">
<span class="date">{{ post.date | date:"<b>%b %d</b><br />%Y" }}</span>
</p>
<div class="body prepend-1 append-1">
<div class="gravatar span-3"><img src="http://www.gravatar.com/avatar/{{ post.avatar }}" class="avatar" alt="Avatar" /></div>
<div id='main'>
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture month %}{{ post.date | date: '%b' }}{% endcapture %}
{% capture day %}{{ post.date | date: '%d' }}{% endcapture %}
{% if paginator.next_page == 2 and forloop.first %}
{{ post.content }}
{% else %}
{% if year == '2010' %}
{{ post.content }}
{% else %}
{% if month == 'Jan' or month == 'Feb' or month == 'Mar' and year == '2011' %}
{{ post.content | split_truncate | truncatewords: 71}}
<div class = "continue_reading"><a href="{{ post.url }}">Continue reading...</a></div>
{% else %}
{{ post.content | split_truncate | truncatewords: 80}}
<div class = "continue_reading"><a href="{{ post.url }}">Continue reading...</a></div>
{% endif %}
{% endif %}
{% endif %}
</div>
<div class="comments">
<h2><a href="{{ post.url }}#disqus_thread">Click here for Comments</a></h2>
</div>
<p>
<div class="tweet left">
<a href="http://twitter.com/share"
class="twitter-share-button"
data-text="{{ post.title }}"
data-count="none"
data-via="crowdint"
data-related="{{post.author}}:with">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
</p>
</div>
<div class="author_box">
<p><b>Author:</b> {{ post.author }} | {{ post.email }}</p>
</div>
</div>
{% endfor %}
<div class="pagination prepend-1">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="../index.html" class="previous">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
{% endif %}
{% 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="/page{{paginator.next_page}}" class="next ">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
<div class="post prepend-1">
<h1>Recent Posts</h1>
<ul class="archives">
{% for post in site.posts limit: 20 %}
<li><span><b>{{ post.date | date_to_string }}</b></span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
<div class="post prepend-1">
<div class="left">
<!-- http://www.facebook.com/pages/Crowd-Interactive/63293958828 -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FCrowd-Interactive%2F63293958828" scrolling="no" frameborder="0" style="height: 62px; width: 100%" allowTransparency="true"></iframe>
</div>
</div>