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

adding page introduction tag on lab index and project index templates

parent b568f465
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
{% block body_class %}light-grey-bg{% endblock %} {% block body_class %}light-grey-bg{% endblock %}
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--top-bottom-inner-space"> <div class="wrapper wrapper--small wrapper--top-bottom-inner-space">
{% if page.introduction %}
<h4 class="heading heading--listings-introduction">{{ page.introduction }}</h4>
{% endif %}
<div class="wrapper wrapper--listings"> <div class="wrapper wrapper--listings">
{% if subpages.object_list.exists %} {% if subpages.object_list.exists %}
......
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
{% block body_class %}light-grey-bg{% endblock %} {% block body_class %}light-grey-bg{% endblock %}
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--top-bottom-inner-space"> <div class="wrapper wrapper--small wrapper--top-bottom-inner-space">
{% if page.introduction %}
<h4 class="heading heading--listings-introduction">{{ page.introduction }}</h4>
{% endif %}
<div class="wrapper wrapper--listings"> <div class="wrapper wrapper--listings">
{% if subpages.object_list.exists %} {% if subpages.object_list.exists %}
{% for subpage in subpages.object_list.specific %} {% for subpage in subpages.object_list.specific %}
......
...@@ -42,4 +42,9 @@ ...@@ -42,4 +42,9 @@
&--center { &--center {
text-align: center; text-align: center;
} }
&--listings-introduction {
margin: 1rem 0;
font-weight: $weight--normal;
}
} }
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