This commit is contained in:
root
2025-10-21 02:44:19 +03:00
parent 749ea2af21
commit 9113975f4b
5 changed files with 151 additions and 5 deletions

View File

@@ -37,14 +37,19 @@
<a class="post-link" href="/article/{{ post.id }}">
<div class="one-post">
<h2 class="post-title">{{ post.title }}</h2>
<div class="article-info">
<strong class="article-author">{{ post.author.first_name }}</strong>
<div class="article-created-date">{{ post.created_date }}</div>
<div class="one-post-content">
<div class="article-info">
<strong class="article-author">{{ post.author.first_name }}</strong>
<div class="article-created-date">{{ post.created_date }}</div>
</div>
<p class="article-text">{{ post.get_excerpt }}</p>
</div>
<p class="article-text">{{ post.get_excerpt }}</p>
<button class="fold-button">Скрыть</button>
</div>
</a>
{% endfor %}
</div>
<script src="{% static 'js/students.js' %}"></script>
<script src="{% static 'js/fold-post.js' %}"></script>
</body>
</html>