mirror of https://github.com/IoTcat/blog.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
586 B
19 lines
586 B
{%- extends "_layout.swig" -%} |
|
{%- import '_macro/post.swig' as post_template -%} |
|
{%- import '_macro/archive.swig' as archive_template -%} |
|
|
|
{%- block title -%} {{ config.title }} {%- endblock -%} |
|
|
|
{%- block content -%} |
|
{%- set mode = theme.mode.toLowerCase() -%} |
|
<section id="posts" class="posts"> |
|
{%- if mode == 'default' -%} |
|
{%- for post in page.posts -%} |
|
{{ post_template.render(post) }} |
|
{%- endfor -%} |
|
{%- include "_partial/pagination.swig" -%} |
|
{%- else -%} |
|
{{ archive_template.render() }} |
|
{%- endif -%} |
|
</section> |
|
{%- endblock -%}
|
|
|