-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (69 loc) · 2.33 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
---
layout: default
---
<div class="home">
{% for post in site.posts %}
{% if post.category == site.citation_category_name %}
<div class="boxed push-down-45">
<div class="meta">
<img class="wp-post-image" src="/assets/images/quote.jpg" alt="Blog image" width="748" height="324">
<q class="meta__quote">
{{ post.title }}
</q>
<div class="meta__container">
<div class="row">
<div class="col-xs-12 col-sm-8"> </div>
<div class="col-xs-12 col-sm-4">
<div class="meta__comments">
{{ post.author }}
</div>
</div>
</div>
</div>
</div>
</div>
{% else %}
<div class="boxed push-down-45">
<div class="meta">
<img class="wp-post-image" src="/images/{{ post.image }}" alt="Blog image" width="748" height="324">
<div class="meta__container">
<div class="row">
<div class="col-xs-12 col-sm-8">
<div class="meta__info">
<span class="meta__date"><span class="glyphicon glyphicon-calendar"></span> {{ post.date | date: "%-d/%m/%Y" }}</span>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="meta__comments">
<span class="glyphicon glyphicon-tag"></span> {{ post.category }}
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<div class="post-content--front-page">
<h2 class="front-page-title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
{% if post.content contains "<!--more-->" %}
{{ post.content | split:"<!--more-->" | first % }}
{% else %}
{{ post.content | strip_html | truncatewords:100 }}
{% endif %}
</div>
<a href="{{ post.url }}">
<div class="read-more">
Lire la suite
<div class="read-more__arrow">
<span class="glyphicon glyphicon-chevron-right"></span>
</div>
</div>
</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>