2020-03-02 20:16:13 +00:00
|
|
|
{{ partial('partial/header', {
|
|
|
|
title: __(page.title),
|
|
|
|
tagline: __(page.tagline),
|
2020-03-03 15:41:51 +00:00
|
|
|
compact: true,
|
|
|
|
showTags: true
|
2020-03-02 20:16:13 +00:00
|
|
|
}) }}
|
2020-06-18 10:29:57 +00:00
|
|
|
|
|
|
|
{% set len = site.posts.length %}
|
|
|
|
{% set sortedPosts = site.posts.sort('date', 'desc') %}
|
|
|
|
{% set posts = sortedPosts.toArray() %}
|
|
|
|
|
|
|
|
<main role="main">
|
|
|
|
<section class="o-container o-distance">
|
2020-03-02 20:16:13 +00:00
|
|
|
{{ partial('partial/coverbox', {
|
|
|
|
title: posts[0].title,
|
|
|
|
titleClassName: 'c-title-level-2',
|
|
|
|
text: posts[0].summary,
|
|
|
|
image: posts[0].image,
|
|
|
|
dateInfo: posts[0].date,
|
|
|
|
link: {
|
|
|
|
text: 'Read more',
|
|
|
|
href: url_for(posts[0].path)
|
|
|
|
}
|
|
|
|
}) }}
|
|
|
|
</section>
|
|
|
|
<section class="o-distance-l o-container">
|
2020-06-18 10:29:57 +00:00
|
|
|
<div class="o-grid">
|
2020-03-02 20:16:13 +00:00
|
|
|
{% for i in [1, 2] %}
|
|
|
|
{{ partial('partial/event-box', {
|
|
|
|
className: 'o-grid__column--1-1 o-grid__column--large-1-2',
|
|
|
|
name: posts[i].title,
|
|
|
|
image: posts[i].image,
|
|
|
|
linkTitle: true,
|
|
|
|
dateInfo: date(posts[i].date),
|
|
|
|
description: posts[i].summary,
|
2020-06-18 10:29:57 +00:00
|
|
|
link: {
|
|
|
|
text: 'Read more',
|
2020-03-02 20:16:13 +00:00
|
|
|
href: url_for(posts[i].path)
|
2020-06-18 10:29:57 +00:00
|
|
|
}
|
2020-03-02 20:16:13 +00:00
|
|
|
}) }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="o-distance-l o-container">
|
|
|
|
<div class="o-grid">
|
|
|
|
{% for i in [3, 4, 5, 6, 7, 8] %}
|
|
|
|
{{ partial('partial/event-box', {
|
2020-06-18 10:29:57 +00:00
|
|
|
className: 'o-grid__column--1-1 o-grid__column--large-1-3',
|
2020-03-02 20:16:13 +00:00
|
|
|
name: posts[i].title,
|
|
|
|
image: posts[i].image,
|
|
|
|
linkTitle: true,
|
|
|
|
dateInfo: date(posts[i].date),
|
|
|
|
description: posts[i].summary,
|
2020-06-18 10:29:57 +00:00
|
|
|
link: {
|
|
|
|
text: 'Read more',
|
2020-03-02 20:16:13 +00:00
|
|
|
href: url_for(posts[i].path)
|
2020-06-18 10:29:57 +00:00
|
|
|
}
|
2020-03-02 20:16:13 +00:00
|
|
|
}) }}
|
|
|
|
{% endfor %}
|
2020-06-18 10:29:57 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-03-02 20:16:13 +00:00
|
|
|
|
|
|
|
<div class="o-container o-distance-l o-center">
|
|
|
|
<a href="/archives" class="c-button" title="{{ __('blog.view_all_link') }}">{{ __('blog.view_all_link') }}</a>
|
2020-06-18 10:29:57 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|