generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojects_horizontal.html
40 lines (40 loc) · 1.39 KB
/
projects_horizontal.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
<div class="card-item col">
{%- if project.redirect -%}
<a href="{{ project.redirect }}">
{%- else -%}
<a href="{{ project.url | relative_url }}">
{%- endif -%}
<div class="card hoverable">
<div class="row g-0">
{%- if project.img -%}
<div class="card-img col-md-6">
{% include figure.html path=project.img alt="project thumbnail" %}
</div>
<div class="col-md-6">
{%- else -%}
<div class="col-md-12">
{%- endif -%}
<div class="card-body">
<h3 class="card-title text-lowercase">{{ project.title }}</h3>
<p class="card-text">{{ project.description }}</p>
<div class="row ml-1 mr-1 p-0">
{%- if project.github -%}
<div class="github-icon">
<div class="icon" data-toggle="tooltip" title="Code Repository">
<a href="{{ project.github }}"><i class="fab fa-github gh-icon"></i></a>
</div>
{%- if project.github_stars -%}
<span class="stars" data-toggle="tooltip" title="GitHub Stars">
<i class="fas fa-star"></i>
<span id="{{ project.github_stars }}-stars"></span>
</span>
{%- endif -%}
</div>
{%- endif -%}
</div>
</div>
</div>
</div>
</div>
</a>
</div>