Skip to content
Snippets Groups Projects
Unverified Commit 388da587 authored by Chris Lawton's avatar Chris Lawton Committed by GitHub
Browse files

Merge pull request #52 from OpenTechFund/feature/73-news-page

Feature/73 news page
parents 060768d4 d1374d35
No related branches found
No related tags found
No related merge requests found
...@@ -4,20 +4,33 @@ ...@@ -4,20 +4,33 @@
{% block content %} {% block content %}
<div class="wrapper wrapper--small"> <div class="wrapper wrapper--small">
<h1>{{ page.title }}</h1> <h5 class="heading heading--author">
{{ page.display_date|date:"D, Y-m-d H:i" }}
{% for author in page.authors.all %} {% if page.authors.all %}
<p><a href="{% pageurl author.author %}">{{ author.author }}</a><p> | By:
{% endfor %} {% for author in page.authors.all %}
<a href="{% pageurl author.author %}">{{ author.author }}</a>
<p>{{ page.introduction }}</p> {% endfor %}
{% endif %}
</h5>
{% if page.introduction %}
<h4 class="heading heading--introduction">{{ page.introduction }}</h4>
{% endif %}
<section class="main-body"> <section class="main-body">
{% include_block page.body %} {% include_block page.body %}
</section> </section>
{% include "includes/share.html" %} {% if page.news_types.all %}
<ul class="list list--flex">
{% for news_type in page.news_types.all %}
<li class="list__label">{{ news_type }}</li>
{% endfor %}
</ul>
{% endif %}
{% include "includes/share.html" %}
</div> </div>
{% include "includes/relatedcontent.html" with related_documents=page.related_documents.all related_pages=page.related_pages.all %} {% include "includes/relatedcontent.html" with related_documents=page.related_documents.all related_pages=page.related_pages.all %}
......
...@@ -5,4 +5,8 @@ ...@@ -5,4 +5,8 @@
font-weight: $weight--light; font-weight: $weight--light;
border-bottom: 1px solid $color--mid-grey; border-bottom: 1px solid $color--mid-grey;
} }
&--author {
margin: 2rem 0 0;
}
} }
.list {
&--flex {
display: flex;
}
&__label {
padding: 10px;
margin-right: 20px;
color: $color--white;
background: $color--light-blue;
}
}
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
@import 'components/icon'; @import 'components/icon';
@import 'components/input'; @import 'components/input';
@import 'components/link'; @import 'components/link';
@import 'components/list';
@import 'components/nav'; @import 'components/nav';
@import 'components/responsive-object'; @import 'components/responsive-object';
@import 'components/rich-text'; @import 'components/rich-text';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment