-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (83 loc) · 3 KB
/
index.html
File metadata and controls
99 lines (83 loc) · 3 KB
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
---
layout: default
title: Home
order: -1
---
<div class='o-wrapper'>
<div class='o-grid js-grid'>
{% assign post = site.posts[0] %}
{% include post-card-featured.html %}
</div>
</div>
<center><h2 style="margin-bottom:0"><a href="science" style="text-decoration:none">Latest science articles</a></h2></center>
<div class='o-wrapper'>
<div class='o-grid js-grid'>
{% if site.posts[0] == site.categories.science[0] %}
{% assign post = site.categories.science[1] %}
{% include post-card.html %}
{% assign post = site.categories.science[2] %}
{% include post-card.html %}
{% assign post = site.categories.science[3] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% else %}
{% assign post = site.categories.science[0] %}
{% include post-card.html %}
{% assign post = site.categories.science[1] %}
{% include post-card.html %}
{% assign post = site.categories.science[2] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% endif %}
</div>
</div>
<center><h2 style="margin-bottom:0"><a href="viewpoints" style="text-decoration:none">Latest viewpoint articles</a></h2></center>
<div class='o-wrapper'>
<div class='o-grid js-grid'>
{% if site.posts[0] == site.categories.viewpoints[0] %}
{% assign post = site.categories.viewpoints[1] %}
{% include post-card.html %}
{% assign post = site.categories.viewpoints[2] %}
{% include post-card.html %}
{% assign post = site.categories.viewpoints[3] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% else %}
{% assign post = site.categories.viewpoints[0] %}
{% include post-card.html %}
{% assign post = site.categories.viewpoints[1] %}
{% include post-card.html %}
{% assign post = site.categories.viewpoints[2] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% endif %}
</div>
</div>
<center><h2 style="margin-bottom:0"><a href="podcasts" style="text-decoration:none">Latest podcasts</a></h2></center>
<div class='o-wrapper'>
<div class='o-grid js-grid'>
{% if site.posts[0] == site.categories.podcasts[0] %}
{% assign post = site.categories.podcasts[1] %}
{% include post-card.html %}
{% assign post = site.categories.podcasts[2] %}
{% include post-card.html %}
{% assign post = site.categories.podcasts[3] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% else %}
{% assign post = site.categories.podcasts[0] %}
{% include post-card.html %}
{% assign post = site.categories.podcasts[1] %}
{% include post-card.html %}
{% assign post = site.categories.podcasts[2] %}
<div class='o-grid__third'>
{% include post-card.html %}
</div>
{% endif %}
</div>
</div>