forked from conferencias-dev/conferencias-dev
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (42 loc) · 1.95 KB
/
index.html
File metadata and controls
48 lines (42 loc) · 1.95 KB
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
---
layout: default
---
<main class="home" id="post" role="main" itemprop="mainContentOfPage" itemscope="itemscope"
itemtype="http://schema.org/Blog">
<div id="grid" class="row flex-grid">
{% capture now %}{{'now' | date: '%Y-%m-%d'}}{% endcapture %}
{% assign sorted_posts = site.posts | sort:"date_from" | reversed %}
{% for post in sorted_posts %}
{% capture date_from %}{{post.date_from | date: '%Y-%m-%d'}}{% endcapture %}
{% capture date_to %}{{post.date_to | date: '%Y-%m-%d'}}{% endcapture %}
{% if date_from >= now or now <= date_to %}
<article class="box-item post-dev" itemscope="itemscope" itemtype="http://schema.org/BlogPosting"
itemprop="blogPost">
<div class="box-body">
<meta itemprop="datePublished" content="{{post.date | date_to_xmlschema }}">
<time itemprop="datePublished" datetime="{{ post.date }}" class="date">
{% if post.date_from == post.date_to %}
{{ post.date_from | date_to_string }}
{% else %}
{{post.date_from | date: '%d'}} - {{post.date_to | date: '%d %b %Y'}}
{% endif %}</time>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title" itemprop="name">
{{ post.title }}
</h2>
</a>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<p class="description">{{ post.description }}</p>
</a>
<div class="tags">
{% for tag in post.tags %}
<a href="{{site.baseurl}}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
</article>
{% endif %}
{% endfor %}
</div>
</main>
{% include follow.html %}