-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.html
66 lines (61 loc) · 2.95 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
---
layout: default
title: Awesome Kotlin Resources
category: home
description:
---
<div class="container">
<div class="row">
{% assign sortedPosts = paginator.posts | sort:'updated_at' | reverse %}
{% for post in sortedPosts %}
{% assign loopindex = forloop.index | modulo: 3 %}
{% if loopindex == 1 %}
</div>
<div class="row">
<div class="col-md-6 col-lg-4 card-wrapper" style="display:flex" {{loopindex}}>
<div class="card" style="width:100%">
<!-- {% if post.image %}
<img class="card-img-top" src="{{ post.image }}" height="100" alt="{{ post.title }}">
{% endif %}-->
<div class="card-block">
<h4 class="card-title"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.creator.name }} / {{ post.title }}</a></h4>
<p class="card-text">{{ post.description }}</p>
{% if post.maven.version %}
<small class="text-muted" style="display:block">Version number: {{ post.maven.version }}</small>
{% endif %}
<small class="text-muted" style="display:block">Last updated: {{ post.updated_at | date: "%Y-%m-%d" }}</small>
</div>
<div class="card-footer">
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tag/{{ tag }}" class="btn btn-success btn-sm" role="button">{{ tag }}</a>
{% endfor %}
</div>
</div>
</div>
{% else %}
<div class="col-md-6 col-lg-4 card-wrapper" style="display:flex" {{loopindex}}>
<div class="card" style="width:100%">
<!--{% if post.image %}
<img class="card-img-top" src="{{ post.image }}" height="100" alt="{{ post.title }}">
{% endif %}-->
<div class="card-block">
<h4 class="card-title"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.creator.name }} / {{ post.title }}</a></h4>
<p class="card-text">{{ post.description }}</p>
<p class="card-text">
{% if post.maven.version %}
<small class="text-muted" style="display:block">Version number: {{ post.maven.version }}</small>
{% endif %}
<small class="text-muted" style="display:block">Last updated: {{ post.updated_at | date: "%Y-%m-%d" }}</small>
</p>
</div>
<div class="card-footer">
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tag/{{ tag }}" class="btn btn-success btn-sm" role="button">{{ tag }}</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>