fix for tag page
This commit is contained in:
52
fet2020/templates/posts/tag.html
Normal file
52
fet2020/templates/posts/tag.html
Normal file
@@ -0,0 +1,52 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% load post_helpers %}
|
||||
{% load thumbnail %}
|
||||
{% block content %}
|
||||
{% if featured_post != None %}
|
||||
{% with post=featured_post %}
|
||||
<div class="large-article-header" style="background-image:url('{{post.imageurl}}')">
|
||||
<div class="large-article-header-content">
|
||||
<div class="center-container">
|
||||
<div class="article-date">
|
||||
<p>{{post.public_date}}</p>
|
||||
</div>
|
||||
<div class="article-title">
|
||||
<h1>{{post.title | tags_to_url }}</h1>
|
||||
</div>
|
||||
<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="{{post.author_member.image | thumbnail_url:'avatar'}}" 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">
|
||||
|
||||
|
||||
<div class="grid-x">
|
||||
<div class="medium-8 cell">
|
||||
{% for post in posts %}
|
||||
{% include 'posts/partials/_posts_hero.html' %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user