Skip to content
Snippets Groups Projects
Commit 030d41f8 authored by Chris Lawton's avatar Chris Lawton
Browse files

adding display date and styling page author in news page template

parent 08bd07d1
No related branches found
No related tags found
No related merge requests found
...@@ -4,12 +4,16 @@ ...@@ -4,12 +4,16 @@
{% block content %} {% block content %}
<div class="wrapper wrapper--small"> <div class="wrapper wrapper--small">
{% for author in page.authors.all %}
<p><a href="{% pageurl author.author %}">{{ author.author }}</a><p>
{% endfor %}
<p>{{ page.introduction }}</p> <p>{{ page.introduction }}</p>
<h5 class="heading heading--author">
{{ page.display_date|date:"D, Y-m-d H:i" }}
{% if page.authors.all %}
| By:
{% for author in page.authors.all %}
<a href="{% pageurl author.author %}">{{ author.author }}</a>
{% endfor %}
{% endif %}
</h5>
<section class="main-body"> <section class="main-body">
{% include_block page.body %} {% include_block page.body %}
......
...@@ -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;
}
} }
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