Skip to content

Commit

Permalink
Merge pull request #6 from andi1984/master
Browse files Browse the repository at this point in the history
Sponsors - Do not render section if there are none.
  • Loading branch information
andi1984 authored Sep 9, 2019
2 parents 538c62c + 2d7ad25 commit fe71e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/partials/sponsors.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% if sponsors|length > 0 %}
<section>
<header><h2>CoderDojo Deutschland e.V. wird unterstützt von…</h2></header>
<div data-sponsor-slider data-slick='{"slidesToShow": 3, "slidesToScroll": 1, "autoplay": true}'>
Expand All @@ -12,3 +13,4 @@
$('[data-sponsor-slider]').slick();
});
</script>
{% endif %}

0 comments on commit fe71e3b

Please sign in to comment.