forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (35 loc) · 1.13 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
---
layout: default
---
<div class="posts">
{% for post in site.posts %}
<article class="post">
<div class="post-image">
<img src="{{ site.baseurl }}/images/{{ post.image }}">
</div>
<div class="post-title">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
</div>
<div class="post-description">
{{ post.excerpt }}
</div>
<div class="post-categories" id="index-tags">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">#{{category}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</div>
<div class="entry-meta">
{{ post.meta }}
</div>
<div class="btn">
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Ver más</a>
</div>
</article>
{% endfor %}
</div>