Move speaker role into a partial
This commit is contained in:
parent
648823e6fb
commit
0a9dbce007
|
@ -9,9 +9,7 @@
|
|||
<span class="tw-flex-1 tw-flex tw-flex-col tw-justify-center">
|
||||
<span class="tw-block tw-font-bold tw-text-xl tw-text-gray-900 group-hocus:tw-underline">{{ speaker.name }}</span>
|
||||
<span class="tw-block tw-text-gray-800">
|
||||
{{ speaker.role }}
|
||||
{%- if speaker.role and speaker.organisation %}, {% endif %}
|
||||
{{ speaker.organisation }}
|
||||
{% include 'speaker-role' with { speaker: speaker } %}
|
||||
</span>
|
||||
</span>
|
||||
<span class="tw-w-24 md:tw-w-32 tw-mr-6">
|
||||
|
|
3
source/_includes/speaker-role.html.twig
Normal file
3
source/_includes/speaker-role.html.twig
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ speaker.role }}
|
||||
{%- if speaker.role and speaker.organisation %}, {% endif %}
|
||||
{{ speaker.organisation }}
|
|
@ -30,9 +30,9 @@
|
|||
{% endif %}
|
||||
|
||||
<div class="markup">
|
||||
{% if page.organisation %}
|
||||
<b>Organisation</b>: {{ page.organisation }}
|
||||
{% endif %}
|
||||
<div class="tw-font-bold tw-text-xl">
|
||||
{% include 'speaker-role' with { speaker: page } %}
|
||||
</div>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue