From 3694e89f96d70ce351074774631f5eca69d6b477 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 31 Mar 2018 20:46:02 +0100 Subject: [PATCH] Move into an include --- source/_includes/talk/image.html.twig | 9 +++++++++ source/talks.html.twig | 10 +--------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 source/_includes/talk/image.html.twig diff --git a/source/_includes/talk/image.html.twig b/source/_includes/talk/image.html.twig new file mode 100644 index 00000000..e6f1d1ac --- /dev/null +++ b/source/_includes/talk/image.html.twig @@ -0,0 +1,9 @@ +{% if talk.speakerdeck.id %} + +{% endif %} diff --git a/source/talks.html.twig b/source/talks.html.twig index 9beca22a..2ea6a317 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -20,15 +20,7 @@ use: [talks] - {% if talk.speakerdeck.id %} - - {% endif %} + {% include 'talk/image.html.twig' %} {% endfor %} {% endblock %}