Commit ef5e041c authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Fix #269

parent e31ed3b0
Pipeline #18404 passed with stages
in 50 seconds
......@@ -148,7 +148,9 @@ class Event(Directive):
node['begin'] = dateutil.parser.parse(self.options['begin'])
node['end'] = dateutil.parser.parse(self.options['end'])
node['title'] = self.arguments[0]
node['speaker'] = self.options.get('speaker', None)
# Fix issue #269
speaker = self.options.get('speaker')
node['speaker'] = speaker if speaker != 'None' else None
node['support'] = self.options.get('support', list())
node['content'] = '\n'.join(self.content)
content = event_content()
......
......@@ -49,9 +49,7 @@
<div class="col-lg-6 p-lg-0">
{% if node_type == 'speaker' %}
<p class="m-0 event-title">{{ node['title'] }}</p>
{% if node['speaker'] %}
<p class="speaker">{{ node['speaker'] }}</p>
{% endif %}
<p class="speaker">{{ node['speaker'] if node['speaker'] }}</p>
{% elif node_type == 'break' %}
<p class="event-break">{{ node['break'] }}</p>
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment