-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·39 lines (37 loc) · 1.61 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
---
layout: default
---
<div class="container">
<!-- begin author -->
<section class="author" data-aos="fade-up" data-aos-easing="ease-out-quad" data-aos-duration="700">
<div class="author__inner">
<img src="{{site.baseurl}}{{site.author.image}}" alt="{{site.title}}" class="author__img">
<h1 class="author__job">{{ site.title }}</h1>
<p class="author__bio">{{ site.description }}</p>
</div>
</section>
<!-- end author -->
</div>
<div class="container">
{% if site.posts.size > 0 %}
{% for post in site.posts %}
<div class="article" data-aos="fade-up" data-aos-easing="ease-out-quad" data-aos-duration="800">
{% if post.image %}
<div class="article__image-box">
<a href="{{post.url | prepend: site.baseurl}}" class="article__image" style="background-image: url({{site.baseurl}}{{post.image}})"></a>
</div>
{% endif %}
<div class="article__content">
<h2 class="article__title">
<a href="{{ post.url | prepend: site.baseurl }}">{{post.title}}</a>
</h2>
<div class="article__meta">
<span class="article__date">Published <time datetime="{{ post.date | date_to_xmlschema }}">{% assign date_format = site.minima.date_format | default: "%B %-d, %Y" %}{{ post.date | date: date_format }}</time></span>
</div>
<p class="article__excerpt">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | truncate: 130 }}{% endif %}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="read-more">Read the rest</a>
</div>
</div>
{% endfor %}
{% endif %}
</div>