-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
24 lines (24 loc) · 1.16 KB
/
posts.html
File metadata and controls
24 lines (24 loc) · 1.16 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
{% extends 'oierspace/blog/themes/pc/theme_argon/base.html' %}
{% block title %}文章 - {{ blog.name }}{% endblock %}
{% block content %}
{% for post in posts %}
<article class="post card bg-white shadow-sm border-0 post-preview">
{% if post.configs.cover %}
<header class="post-header text-center post-header-with-thumbnail">
<img class="post-thumbnail lazyload lazyload-loaded" src="{{ post.configs.cover }}" alt="thumbnail" style="opacity: 0;">
<div class="post-header-text-container">
<a class="post-title" href="{% url 'blog_post' post.slug %}">{{ post.title }}</a>
{% include 'oierspace/blog/themes/pc/theme_argon/component/post_meta.html' %}
</div>
</header>
{% else %}
<header class="post-header text-center">
<a class="post-title" href="{% url 'blog_post' post.slug %}">{{ post.title }}</a>
{% include 'oierspace/blog/themes/pc/theme_argon/component/post_meta.html' %}
</header>
{% endif %}
<div class="post-content" style="text-align: center">{{ post.intro }}</div>
</article>
{% endfor %}
{% include 'oierspace/blog/themes/pc/theme_argon/component/pagination.html' %}
{% endblock %}