-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html
executable file
·43 lines (41 loc) · 1.84 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
---
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.author.name}}" class="author__img">
<h1 class="author__job">{{ site.author.job }}</h1>
<p class="author__bio">{{ site.author.bio }}</p>
<div class="author__more">
<a href="mailto:{{site.author.email}}?subject=Hello%20%F0%9F%91%8B" class="say-hello">Say hello</a>
<a href="{{site.baseurl}}/about/" class="know-more">Know More</a>
</div>
</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>