|
|
|
|
@ -10,15 +10,25 @@ |
|
|
|
|
|
|
|
|
|
<div class="post_padding"> |
|
|
|
|
|
|
|
|
|
{% if post.style == 1 %} |
|
|
|
|
<div class="quote"> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if post.style != 2 %} |
|
|
|
|
<a href="{{ post.url }}"><h1>{{ post.title }}</h1></a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if post.style == 1 %} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if post.style == 4 %} |
|
|
|
|
{% autoescape off %} |
|
|
|
|
{{ post.body }} |
|
|
|
|
{% endautoescape %} |
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
{% if post.style == 1 %} |
|
|
|
|
<div class="quote"> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if post.style != 2 %} |
|
|
|
|
<a href="{{ post.url }}"><h1>{{ post.title }}</h1></a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if post.style == 1 %} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="details"> |
|
|
|
|
{{ post.date }} - {{ post.author.username }} |
|
|
|
|
@ -27,7 +37,7 @@ |
|
|
|
|
|
|
|
|
|
{% if post.style == 3 %} |
|
|
|
|
<iframe class="youtube" src="https://www.youtube.com/embed/{{ post.url }}"></iframe> |
|
|
|
|
{% elif post.style != 1 %} |
|
|
|
|
{% elif post.style != 1 and post.style != 4 %} |
|
|
|
|
<img src="{% static 'media/' %}{{ post.image_url }}"/> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|