update design for news tag page

This commit is contained in:
2022-01-05 22:54:01 +00:00
committed by root
parent 48dfc67690
commit 5f2174252b

View File

@@ -1,55 +1,15 @@
{% extends 'layout.html' %} {% extends 'base.html' %}
{% load post_helpers %}
{% block content %} {% block content %}
{% if featured_post != None %} <!-- Main Content -->
{% with post=featured_post %} <main class="container mx-auto w-full px-4 my-8 flex-1">
<div class="large-article-header" style="background-image:url('{{post.imageurl}}')"> <h1 class="page-title">News zu #{{ tag }}</h1>
<div class="large-article-header-content"> <div class="sm:flex sm:flex-row-reverse justify-center">
<div class="center-container"> <section class="my-8 sm:my-0 sm:w-3/5 xl:w-2/5 flex flex-col gap-4">
<div class="article-date"> {% for post in posts %}
<p>{{post.date}}</p> {% include 'posts/partials/_posts_hero.html' %}
</div> {% endfor %}
<div class="article-title"> </section>
<h1>{{post.title | tags_to_url }}</h1> </div>
</div> </main>
<div class="article-details">
{{post.subtitle | tags_to_url }}
{% if post.author_member != None %}
<div class="article-author"><a href="{% url 'member' post.author_member.nickname %}">
<img src="{{author_image}}" alt="" />
{{post.author}}</a>
</div>
{% else %}
<div class="article-author"><a href="">
<img src="" alt="" />
FET</a>
</div>
{% endif %}
</div> <button class="">
<span class="nav fa fa-chevron-right fa-3x"></span>
</button>
</div>
</div>
</div>
{% endwith %}
{% endif %}
<div class="grid-container">
<!-- show job lists in a job group -->
{% include 'members/jobs_list.html' %}
</div>
<div class="grid-container">
<div class="grid-x">
<div class="medium-8 cell">
{% for post in posts %}
{% include 'posts/partials/_posts_hero.html' %}
{% endfor %}
</div>
</div>
</div>
{% endblock %} {% endblock %}