2
0
mirror of synced 2025-02-25 01:18:23 +00:00
blog/themes/embark/layout/archive.swig
Jakub Sokołowski c7acd418c2
first commit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-06-18 12:29:57 +02:00

51 lines
1.3 KiB
Plaintext

{% if is_category() %}
{{
partial('partial/header', {
title: 'Categories: ' +site.data.categories[page.category],
tagline: '&nbsp;',
compact: true,
link: {
text: '&larr; Back to blog',
href: '/news'
},
})
}}
{% else %}
{{
partial('partial/header', {
title: __('archives.header.title'),
tagline: '&nbsp;',
compact: true,
link: {
text: __('archives.header.link'),
href: '/news'
},
})
}}
{% endif %}
<main role="main">
<section class="o-container-medium o-distance">
{% for post in page.posts %}
{{
partial('partial/whisperbox', {
className: 'o-distance-m',
title: post.title,
linkClassName: 'u-link-uniform',
titleClassName: 'c-title-level-3',
linkTitle: true,
text: post.summary,
dateInfo: post.date,
link: {
text: __('archives.article_box.read_more_link'),
href: url_for(post.path)
}
})
}}
{% endfor %}
</section>
<div class="o-container o-distance o-center">
<a href="/news" class="c-button" title="{{__('archives.back_to_blog_link.title')}}">{{__('archives.back_to_blog_link.label')}}</a>
</div>
</main>