2025-2-26-fixed
This commit is contained in:
20
themes/next/layout/index.swig
Normal file
20
themes/next/layout/index.swig
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends '_layout.swig' %}
|
||||
{% import '_macro/sidebar.swig' as sidebar_template with context %}
|
||||
|
||||
{% block title %}{{ title }}{%- if theme.index_with_subtitle and subtitle %} - {{ subtitle }}{%- endif %}{% endblock %}
|
||||
|
||||
{% block class %}index posts-expand{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{%- for post in page.posts.toArray() %}
|
||||
{{ partial('_macro/post.swig', {post: post, is_index: true}) }}
|
||||
{%- endfor %}
|
||||
|
||||
{% include '_partials/pagination.swig' %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{{ sidebar_template.render(false) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user