forked from dbcls/website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-en.html
executable file
·84 lines (79 loc) · 2.8 KB
/
index-en.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
---
---
<!DOCTYPE html>
<html lang="en" data-page-type="index">
<head>
<meta charset="UTF-8">
<title>DBCLS | Database Center for Life Science</title>
<link rel="stylesheet" href="style/swiper-bundle.min.css">
<link rel="stylesheet" href="style/default.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="script/splide.min.js"></script>
</head>
<body>
{% include header_en.html %}
<div class="main-image__wrapper">
<div class="main-image__contents" data-slides-per-view="{{site.data.carousel.slides_per_view}}"
data-duration="{{site.data.carousel.duration}}">
<div class="swiper main-carousel">
<div class="swiper-wrapper main">
{% for item in site.data.carousel.items limit:site.data.carousel.slides_per_view %}
<div class=" swiper-slide">
<a href="{{item.url.en}}" target="_blank"><img draggable="false" class="top-image" src="{{item.image.en}}"
alt="{{item.title.en}}"></a>
<img draggable="false" class="reflection" src="{{item.image.en}}" alt="{{item.title.en}}">
<div class="details">
{% if item.logo != nil %}
<a href="{{item.url.en}}" target="_blank"><img draggable="false" class="details-logo" src="{{item.logo}}"
alt="{{item.title.en}}">
</a>
{% endif %}
<h2>{{item.title.en}}</h2>
<p>{{item.description.en}}
</p>
</div>
</div>
{% endfor %}
</div>
</div>
<div thumbsSlider="" class="swiper thumbnail-carousel">
<div class="swiper-button-prev"></div>
<div class="swiper-wrapper">
{% for item in site.data.carousel.items limit:site.data.carousel.slides_per_view %}
<div class="swiper-slide"><img draggable="false" src="{{item.image.en}}" alt="{{item.title.en}}">
</div>
{% endfor %}
</div>
<div class="swiper-button-next"></div>
</div>
</div>
</div>
<div class="top__news-section">
<h2 class="page-title">News</h2>
<ul class="news__individual-wrapper">
{% for post in site.categories.en limit:5 %}
<li class='post__individual'>
<div class="post__date">
{{post.date | date: '%Y. %m. %d'}}
</div>
<div class="post__main post__main-top">
<a href="{{post.url | prepend: site.baseurl}}" class="post__title">{{post.title}}</a>
{% assign beginning = post.content | slice: 0, 300 | strip_html%}
<p class='post__desc-beginning'>{{beginning | slice: 0, 50}}…</p>
<div class="post__sub-info">
<div class="post-tags">
{% include post_meta.html %}
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
<a href="news-en.html" class="more_btn page_btn">more</a>
</div>
{% include footer_en.html %}
<script src="script/default.js"></script>
<script src="script/swiper-bundle.min.js"></script>
<script src="script/index.js"></script>
</body>
</html>