-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathindex.html
executable file
·66 lines (61 loc) · 3.96 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
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: default
---
{% include hero.html %}
{% include info-box.html %}
{% if paginator.page %}
{% assign offset = paginator.page | minus:1 | times:paginator.per_page %}
{% assign currentPage = paginator.page %}
{% else %}
{% assign offset = 0 %}
{% assign currentPage = 1 %}
{% endif %}
<div class="content-wrap">
<div class="wrapper" data-page="{{ currentPage }}" data-totalPages="{{ paginator.total_pages }}">
{% for post in site.posts limit:site.paginate offset:offset %}
{% assign author = site.authors[post.author] %}
<article class="posts">
{% if post.img %}
<a class="post-thumbnail hidden" style="background-image: url({{"/images/pages/" | prepend: site.baseurl | append : post.img}})" href="{{post.url | prepend: site.baseurl}}">
{% if author %}
<div class="author-box">
<div class="author-image-cover">
<div class="author-image-small" style="background-image: url({{"/images/" | prepend: site.baseurl | append: author.author-image}})"></div>
</div>
<div class="author-info">
<span class="meta">Date: <time datetime="{{ post.date | date_to_xmlschema }}">{% assign date_format = site.minima.date_format | default: "%B %-d, %Y" %}{{ post.date | date: date_format }}</time></span><br>
<span>Author: {{ author.author-name }}</span>
</div>
</div>
{% else %}
<div class="author-box">
<div class="author-image-cover">
<div class="author-image-small" style="background-image: url({{"/images/" | prepend: site.baseurl | append: site.author-image}})"></div>
</div>
<div class="author-info">
<span class="meta">Date: <time datetime="{{ post.date | date_to_xmlschema }}">{% assign date_format = site.minima.date_format | default: "%B %-d, %Y" %}{{ post.date | date: date_format }}</time></span><br>
<span>Author: {{ site.author-name }}</span>
</div>
</div>
{% endif %}
<div class="cover"></div>
</a>
{% endif %}
<div class="post-body {{ body-full }}">
<h2><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | truncatewords: 20 }}{% endif %}</p>
<a href="{{site.baseurl}}{{ post.url }}" title="read more" class="more">Read more</a>
</div>
<div class="post-share">
<a class="share-icon share-twitter" href="https://twitter.com/intent/tweet?text={{ post.title | uri_escape }}&url={{ site.url }}{{ site.baseurl }}{{ post.url }}" onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="Share on Twitter" rel="nofollow"><i class="fa fa-twitter" aria-hidden="true"></i></a>
<a class="share-icon share-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ post.url }}" onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="Share on Facebook" rel="nofollow"><i class="fa fa-facebook" aria-hidden="true"></i></a>
<a class="share-icon share-pinterest" href="http://pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ post.url }}&media={{ site.url }}/images/pages/{{ post.img }}&description={{ post.title | uri_escape }}" onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;" title="Share on Pinterest"><i class="fa fa-pinterest" aria-hidden="true"></i></a>
</div>
</article> <!-- /.posts -->
{% endfor %}
</div> <!-- /.wrapper -->
</div> <!-- /.content-wrap -->
{% include pagination.html %}