First Templates added
This commit is contained in:
44
fet2020/templates/posts/show.html
Normal file
44
fet2020/templates/posts/show.html
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
{% extends "layout.html" %}
|
||||
{% load post_helpers %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<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 }}
|
||||
<div class="article-author">
|
||||
<img src="https://unsplash.it/50/50?image=1005" alt="" />
|
||||
<a href="#">Jane Austen</a>
|
||||
</div>
|
||||
|
||||
<div class="article-comments">
|
||||
<a href="#"><i class="fa fa-comment" aria-hidden="true"></i> 3 Comments</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="grid-container">
|
||||
<h1>{{post.title | tags_to_url }}</h1><br>
|
||||
<a href="{% url 'posts.show' next %}">Nächster Artikel</a>
|
||||
{{post.event_start}}
|
||||
{{post.event_end}}
|
||||
<strong>{{post.subtitle | tags_to_url }}</strong>
|
||||
<hr>
|
||||
{{post.body | safe}}
|
||||
<hr>
|
||||
tags:{{ post.get_tags }}
|
||||
|
||||
<hr>
|
||||
|
||||
{{related_posts}}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user