Hide abstract title

This commit is contained in:
Oliver Davies 2016-03-27 19:17:23 +01:00
parent a556fcd44f
commit f1911a79a4
3 changed files with 45 additions and 21 deletions

View file

@ -2,14 +2,19 @@
{% block content_wrapper %} {% block content_wrapper %}
<main class="col-md-9"> <main class="col-md-9">
<h1>{{ page.title }}</h1> <h1 class="page-title">{{ page.title }}</h1>
{% if page.blocks.abstract %} {% if page.blocks.abstract %}
<h2>Abstract</h2> <div class="abstract">
<h2 class="abstract__title">Abstract</h2>
<div class="abstract__content">
{{ page.blocks.abstract|raw }} {{ page.blocks.abstract|raw }}
</div>
</div>
{% endif %} {% endif %}
<div class="details">
<h2>Details</h2> <h2>Details</h2>
<ul> <ul>
@ -23,23 +28,38 @@
<li>Date: {{ page.date|date(site.default_date_format) }}</li> <li>Date: {{ page.date|date(site.default_date_format) }}</li>
<li>Location: {{ page.event.location }}</li> <li>Location: {{ page.event.location }}</li>
</ul> </ul>
</div>
{% if page.blocks.slides %} {% if page.blocks.slides %}
<h2>Slides</h2> <div class="slides">
<h2 class="slides__title">Slides</h2>
<div class="slides__content">
{{ page.blocks.slides|raw }} {{ page.blocks.slides|raw }}
</div>
</div>
{% endif %} {% endif %}
{% if page.blocks.video %} {% if page.blocks.video %}
<h2>Video</h2> <div class="video">
<h2 class="video__title">Video</h2>
<div class="video__content">
{{ page.blocks.video|raw }} {{ page.blocks.video|raw }}
</div>
</div>
{% endif %} {% endif %}
{% if page.blocks.feedback %} {% if page.blocks.feedback %}
<h2>Feedback</h2> <div class="feedback">
<h2 class="feedback__title">Feedback</h2>
<div class="feedback__content">
{{ page.blocks.feedback|raw }} {{ page.blocks.feedback|raw }}
</div>
</div>
{% endif %} {% endif %}
</main> </main>
{% endblock %} {% endblock %}
{% block body_classes %}page--talk{% endblock %}

View file

@ -0,0 +1,3 @@
.page--talk
.abstract__title
@extend .sr-only

View file

@ -12,6 +12,7 @@
@import 'base' @import 'base'
@import 'components/badges' @import 'components/badges'
@import 'components/content-types/blog-post' @import 'components/content-types/blog-post'
@import 'components/content-types/talk'
@import 'components/footer' @import 'components/footer'
@import 'components/meetups' @import 'components/meetups'
@import 'components/testimonials' @import 'components/testimonials'