-
Notifications
You must be signed in to change notification settings - Fork 1
/
portfolio_grid.html
61 lines (61 loc) · 2.53 KB
/
portfolio_grid.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
<!-- Portfolio Grid -->
{% if site.locale and site.locale != "" and site.locale != nil %}
<section class="bg-light page-section" id="{{ site.data.sitetext[site.locale].portfolio.section | default: "portfolio" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">{{ site.data.sitetext[site.locale].portfolio.title | markdownify | default: "Portfolio" }}</h2>
<h3 class="section-subheading text-muted">{{ site.data.sitetext[site.locale].portfolio.text | markdownify }}</h3>
</div>
</div>
<div class="row">
{% for project in site.portfolio %}
<div class="col-md-4 col-sm-6 portfolio-item">
<a class="portfolio-link" data-toggle="modal" href="#p{{ forloop.index }}">
<div class="portfolio-hover">
<div class="portfolio-hover-content">
<i class="{{ site.data.style.portfolio-icon | default: "fas fa-plus fa-3x" }}"></i>
</div>
</div>
<img class="img-fluid" src="{{ project.caption.thumbnail }}" alt="">
</a>
<div class="portfolio-caption">
<h4>{{ project.caption.title }}</h4>
<p class="text-muted">{{ project.caption.subtitle }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% else %}
<section class="bg-light page-section" id="{{ site.data.sitetext.portfolio.section | default: "portfolio" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">{{ site.data.sitetext.portfolio.title | markdownify | default: "Portfolio" }}</h2>
<h3 class="section-subheading text-muted">{{ site.data.sitetext.portfolio.text | markdownify }}</h3>
</div>
</div>
<div class="row">
{% for project in site.portfolio %}
<div class="col-md-4 col-sm-6 portfolio-item">
<a class="portfolio-link" data-toggle="modal" href="#p{{ forloop.index }}">
<div class="portfolio-hover">
<div class="portfolio-hover-content">
<i class="{{ site.data.style.portfolio-icon | default: "fas fa-plus fa-3x" }}"></i>
</div>
</div>
<img class="img-fluid" src="{{ project.caption.thumbnail }}" alt="">
</a>
<div class="portfolio-caption">
<h4>{{ project.caption.title }}</h4>
<p class="text-muted">{{ project.caption.subtitle }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endif %}
{% include modals.html %}