forked from hmfaysal/Notepad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
119 lines (111 loc) · 5.44 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
layout: home
title: Blog
description: "The personal blog of Mohit Srivastava, PM Manager at Microsoft working on Web and Azure developer experience."
headline: Mohit Srivastava's thoughts on the cloud, software, product management and entrepreneurship
tags: [Mohit, Srivastava, Seattle, Microsoft, cloud, product management]
---
{% if site.paginate %}
{% for post in paginator.posts %}
<article class="notepad-index-post post row">
<div class="small-12 medium-3 large-2 columns datetime">
<span class="notepad-post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}">
<span class="day">
{{ post.date | date: "%d" }}
</span>
<span class="month-year">
{{ post.date | date: "%B %Y" }}
</span>
</time>
</span>
</div>
<div class="small-12 medium-9 large-10 columns">
<header class="notepad-post-header">
<h3 class="notepad-post-title">
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
</a>
</h3>
<h4 class="notepad-post-small" style="text-align:center">
{{ post.date | date: "%d %b %Y" }}
</h4>
</header>
<section class="notepad-post-excerpt">
{% if post.excerpt_image %}
<img src="{{ site.url }}/images/{{ post.excerpt_image }}"></img>
{% endif %}
<!--<p>{{ post.content | strip_html | truncatewords:40 }}</p>-->
<p>{{ post.excerpt }}</p>
<p style="font-size:16px;margin-top:5px">
<a href="{{ site.url }}{{ post.url }}">Read more</a>
<span style="color:rgb(160,160,160)">
|
<a class="notepad-post-excerpt-tags" href="{{ site.url }}{{ post.url }}#disqus_thread">Comments</a>
|
{% assign tagsize = post.tags.size %}
{%if tagsize != 0 %}
Posted in:
{% for tag in post.tags %}
<a class="notepad-post-excerpt-tags" href="{{ site.url }}/tags/index.html#{{ tag | cgi_encode }}" data-toggle="tooltip" title="Posts tagged with {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
{% endfor %}
{% endif %}
</span>
</p>
</section>
<!--<div class="notepad-index-post-tags">
{% for tag in post.tags %}<a href="{{ site.url }}/tags/index.html#{{ tag | cgi_encode }}" title="Other posts from the {{ tag | capitalize }} category">{{ tag | capitalize }}</a>{% unless forloop.last %} {% endunless %}{% endfor %}
</div>-->
</div>
</article>
{% endfor %}
<nav class="pagination" role="navigation">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="{{ paginator.previous_page_path }}"><i class="fa fa-chevron-left"></i> Newer</a>
{% else %}
<a class="newer-posts" href="{{ paginator.previous_page_path }}"><i class="fa fa-chevron-left"></i> Newer</a>
{% endif %}
{% else %}
<span class="newer-posts faded"><i class="fa fa-chevron-left"></i> Newer</span>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="older-posts" href="{{ paginator.next_page_path }}">Older <i class="fa fa-chevron-right"></i></a>
{% else %}
<span class="older-posts faded">Older <i class="fa fa-chevron-right"></i></span>
{% endif %}
</nav>
{% else %}
{% for post in site.posts %}
<article class="notepad-index-post post row">
<div class="small-12 medium-3 large-2 columns datetime">
<span class="notepad-post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}">
<span class="day">
{{ post.date | date: "%d" }}
</span>
<span class="month-year">
{{ post.date | date: "%B %Y" }}
</span>
</time>
</span>
</div>
<div class="small-12 medium-9 large-10 columns">
<header class="notepad-post-header">
<h3 class="notepad-post-title">
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
</a>
</h3>
</header>
<section class="notepad-post-excerpt">
<p>{{ post.content | strip_html | truncatewords:100 }}</p>
</section>
<div class="notepad-index-post-tags">
{% for tag in post.categories %}<a href="{{ site.url }}/categories/index.html#{{ post.categories | cgi_encode }}" title="Other posts from the {{ tag | capitalize }} category">{{ tag | capitalize }}</a>{% unless forloop.last %} {% endunless %}{% endfor %}
</div>
</div>
</article>
{% endfor %}
{% endif %}