-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (52 loc) · 1.8 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
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
---
<div id="home">
<section class="page-content wc-container">
{% for post in site.posts limit:10 %}
{% if post.category %}
{% for site_category in site.data.categories %}
{% if site_category.slug == post.category %}
{% assign category = site_category %}
{% endif %}
{% endfor %}
{% if category %}
{% capture category_content %}
<a href="/{{ category.slug }}/">{{ category.name }}</a>
{% endcapture %}
{% endif %}
{% else %}
{% assign category_content = '' %}
{% endif %}
<article class="post" itemscope itemtype="http://schema.org/Article" role="article">
<h2 class="post-title" itemprop="name">
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
{{ post.title }}
</a>
</h2>
<p class="post-meta">
<span class="author" itemprop="author">
{{ post.post_author }}
</span> |
<span class="categories" itemprop="about">
{{ category_content }}
</span> |
<time class="post-date" datetime="{{ post.date | date: "%Y-%m-%d" }}" itemprop="datePublished" pubdate>
{{ post.date | date: "%b %-d, %Y" }}
</time>
</p>
<div>
{{ post.excerpt }}
</div>
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" title="{{ post.title}}">
Continue lendo
</a>
</article>
{% endfor %}
</section>
<div class="post-footer">
<div class="column-full">
<a href="{{ '/blog' | prepend: site.baseurl | prepend: site.url }}">Todos os artigos</a>
</div>
</div>
</div>