This commit is contained in:
2020-09-10 00:40:26 +00:00
parent 5e37fd3da9
commit f9e5f50a57
6 changed files with 59 additions and 71 deletions

View File

@@ -6,49 +6,48 @@
<div class="grid-x">
<div class="medium-8 small cell" style="background: grey">
{% with post=featured_post %}
<a href="{{post.url}}">
<div class="news-hero-large"style="background-image: url('{{post.imageurl}}');)">
<div class="medium-8 small cell" style="background: grey">
{% with post=featured_post %}
<a href="{{post.url}}">
<div class="news-hero-large"style="background-image: url('{{post.imageurl}}');)">
<div class="news-hero-text" >
<hr>
<div class="article-date">
<p>{{post.public_date}}</p>
</div>
<div class="article-title">
<h1>{{post.title| safe}}</h1>
<p>{{post.subtitle | safe}}</p>
</div>
</div>
</div>
</a>
{% endwith %}
</div>
<div class="medium-4 responsive-side-box cell">
<div class="medium-4 responsive-side-box cell">
<a href="{% url 'posts.index' %}"><h1>Neuigkeiten</h1>
</a>
<div class="article-row-section">
<a href="{% url 'posts.index' %}"><h1>Neuigkeiten</h1></a>
<div class="article-row-section">
{% with post=featured_post %}
{% include 'posts/partials/_article_row.html' %}
{% endwith %}
{% for post in featured_meeting %}
{% include 'posts/partials/_meeting_row.html' %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<div class="grid-container">
<div class="grid-x grid-padding-x padding-top-1">
<div class="grid-x grid-padding-x padding-top-1">
{{ tags_list|tags_to_url }}
</div>
</div>
<div class="grid-x grid-x-padding">
<div class="grid-x grid-x-padding">
<div class="medium-8 small-12 small-order-2 medium-order-1"">
{% for post in posts %}
{% include 'posts/partials/_posts_hero.html' %}
@@ -60,8 +59,7 @@
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -6,6 +6,6 @@
{% include 'members/partials/_member.html' %}
<h2>{{mem.get_job_role_display}} ({{mem.job_start|date}} - {{mem.job_end|date}})</h2>
</div>
{%endwith %}
{% endwith %}
{% endfor %}
</div>

View File

@@ -1,5 +0,0 @@
{% extends 'layout.html' %}
{% block content %}
Memeber
{% endblock %}

View File

@@ -3,16 +3,12 @@
{% block content %}
<div class="grid-container">
<div class="grid-x">
<div class="grid-x">
<div class="medium-8 cell">
{% for post in posts %}
{% include 'posts/partials/_posts_hero.html' %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -86,4 +86,4 @@
{% endfor %}
</div>
</div>
{% endblock %}fffsdfag
{% endblock %}

View File

@@ -1,6 +1,5 @@
{% extends 'layout.html' %}
{% load post_helpers %}
{% load thumbnail %}
{% block content %}
{% if featured_post != None %}
{% with post=featured_post %}