jekyll-dopetrope/_layouts/landing.html

87 lines
2.4 KiB
HTML
Raw Permalink Normal View History

---
layout: dopetrope
---
2018-02-15 07:44:35 +00:00
<!-- Header -->
<div id="header-wrapper">
<div id="header">
{% include header.html %}
{% include splash.html %}
</div>
</div>
<!-- Main -->
<div id="main-wrapper">
<div class="container">
<div class="row">
<div class="12u">
<!-- Portfolio -->
<section>
<header class="major">
<h2>My Portfolio</h2>
</header>
2018-02-17 19:06:09 +00:00
{% assign rowCount = 0 %}
<div class="row">
2018-02-17 22:54:35 +00:00
{% for portfolio in site.portfolio reversed %}
<div class="4u 12u(mobile)">
<section class="box">
2018-02-17 19:06:09 +00:00
<a href="#" class="image featured"><img src="{{ portfolio.image }}" alt="" /></a>
<header>
2018-02-17 19:06:09 +00:00
<h3>{{ portfolio.title }}</h3>
</header>
2018-02-17 19:06:09 +00:00
<p>{{ portfolio.content }}</p>
<footer>
<a href="#" class="button alt">Find out more</a>
</footer>
</section>
</div>
2018-02-17 19:06:09 +00:00
{% assign rowCount = rowCount | plus:1 %}
{% if rowCount == 3 or forloop.last %}
</div>
2018-02-17 19:06:09 +00:00
{% endif %}
{% if rowCount == 3 and forloop.last != true %}
{% assign rowCount = 0 %}
<div class="row">
2018-02-17 19:06:09 +00:00
{% endif %}
{% endfor %}
</section>
</div>
</div>
<div class="row">
<div class="12u">
<!-- Blog -->
<section>
<header class="major">
<h2>The Blog</h2>
</header>
<div class="row">
2018-02-17 22:54:35 +00:00
{% for post in site.blog reversed limit:2 %}
<div class="6u 12u(mobile)">
<section class="box">
2018-02-17 22:54:35 +00:00
<a href="#" class="image featured"><img src="{{ post.image }}" alt="" /></a>
<header>
2018-02-17 22:54:35 +00:00
<h3>{{ post.title }}</h3>
<p>{{ post.date }}</p>
</header>
2018-02-17 22:54:35 +00:00
<p> {{ post.excerpt }}</p>
<footer>
<ul class="actions">
<li><a href="#" class="button icon fa-file-text">Continue Reading</a></li>
<li><a href="#" class="button alt icon fa-comment">33 comments</a></li>
</ul>
</footer>
</section>
</div>
2018-02-17 22:54:35 +00:00
{% endfor %}
</div>
</section>
</div>
</div>
</div>
</div>