forked from IFPRMENA/arabspatialblog3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·149 lines (112 loc) · 4.53 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
layout: feed
section: blog
---
{% for item in site.categories.blog limit:1000 %}
{% capture date %}{{ item.date | date: '%B %Y' }}{% endcapture %}
{% capture ndate %}{{ item.next.date | date: '%B %Y' }}{% endcapture %}
{% if item.language == 'arabic' %}
<div id="{{item.id}}" class="articleblog clearfix arabic hideblog">
{% if item.splash or item.youtubeid %}
{% if item.youtubeid %}
{% capture youtubeurl %}{{item.youtubeid}}{% endcapture %}
<div class="video-wrapper">
<a href='{{site.baseurl}}{{item.url}}'><div class="youtubeThumbnail">
<img width="100%" src='http://img.youtube.com/vi/{{youtubeurl}}/hqdefault.jpg' alt='' />
<i class="fa fa-play iconPlay"></i>
</div></a>
</div>
{% endif %}
{% if item.splash && item.youtubeid %}
{% if item.splash contains 'http' %}
{% capture url %}{{item.splash}}{% endcapture %}
{% else %}
{% capture url %}{{site.baseurl}}{{item.splash}}/{% endcapture %}
{% endif %}
<div class='splash' href='{{site.baseurl}}{{item.url}}'>
<a href='{{site.baseurl}}{{item.url}}'>
<img width="100%" src='{{url}}' alt='' />
</a>
</div>
{% endif %}
{% else %}
<div class='splash' href='{{site.baseurl}}{{item.url}}'>
<a href='{{site.baseurl}}{{item.url}}'>
<img width="100%" src='{{site.baseurl}}/img/IFPRI.png' alt='' />
</a>
</div>
{% endif %}
<div class="textContainer col-sm-12">
<!-- Arabic Content -->
<div class="entryTitle blogClickable" style="text-align:right; direction: rtl;" title="{{ item.id }}"><a id="{{ item.title | replace: ' ', '_' }}" class='itemTitle' title="{{ item.id }}" href='{{site.baseurl}}{{item.url}}'>{{item.title}}</a>
</div>
<div class='date'>
<div class="dateText" style="text-align:right;">
{{item.date | date:"%B %d, %Y"}}
</div>
<div class="dateText" style="text-align:right;"> إعداد:
<span>{{ item.affiliation }}
{% if item.author %}
- {{item.author}}
{% endif %}
</span></div>
</div>
{% if item.content %}
<div class="summeryText" style="text-align:right;">{{ item.content | split: '<!-- more -->' | first }}</div>
{% endif %}
</div>
</div>
{% else %}
<div id="{{item.id}}" class="articleblog clearfix english showblog">
{% if item.splash or item.youtubeid %}
{% if item.youtubeid %}
{% capture youtubeurl %}{{item.youtubeid}}{% endcapture %}
<div class="video-wrapper">
<a href='{{site.baseurl}}{{item.url}}'><div class="youtubeThumbnail">
<img width="100%" src='http://img.youtube.com/vi/{{youtubeurl}}/hqdefault.jpg' alt='' />
<i class="fa fa-play iconPlay"></i>
</div></a>
</div>
{% endif %}
{% if item.splash && item.youtube %}
{% if item.splash contains 'http' %}
{% capture url %}{{item.splash}}{% endcapture %}
{% else %}
{% capture url %}{{site.baseurl}}{{item.splash}}/{% endcapture %}
{% endif %}
<div class='splash' href='{{site.baseurl}}{{item.url}}'>
<a href='{{site.baseurl}}{{item.url}}'>
<img width="100%" src='{{url}}' alt='' />
</a>
</div>
{% endif %}
{% else %}
<div class='splash' href='{{site.baseurl}}{{item.url}}'>
<a href='{{site.baseurl}}{{item.url}}'>
<img width="100%" src='{{site.baseurl}}/img/IFPRI.png' alt='' />
</a>
</div>
{% endif %}
<div class="textContainer col-sm-12">
<div class="entryTitle blogClickable"><a id="{{ item.title | replace: ' ', '_' }}" title="{{ item.id }}" class='itemTitle' href='{{site.baseurl}}{{item.url}}'>{{item.title }}</a></div>
<div class='date'>
<div class="dateText">{{item.date | date:"%B %d, %Y"}}</div>
{% if item.author %}
<div class="dateText" >By:
<span>{{ item.author }}
{% if item.affiliation %}
- {{item.affiliation}}
{% endif %}
</span></div>
{% endif %}
</div>
{% if item.content contains '<!-- more -->' %}
<div class="summeryText" >{{ item.content | split: '<!-- more -->' | first }}</div>
<!--<div class="summeryText" >{{ item.excerpt | strip_html}}...</div>-->
{% else %}
<div class="summeryText" >{{ item.content }}</div>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}