diff --git a/_includes/elements/carousel.html b/_includes/elements/carousel.html
index d0c811498..d9bc612f8 100644
--- a/_includes/elements/carousel.html
+++ b/_includes/elements/carousel.html
@@ -1,40 +1,102 @@
-{%- assign images = carousel_images | strip | newline_to_br | split: '
' -%}
-
-
-
+{%- assign images = carousel_images | strip | newline_to_br | split: '
' -%}
+{%- assign carousel_id = include.carousel_id -%}
+{%- if include.class -%}
+
- {% for image in images %}
- {%- if forloop.first -%}
-
- {%- else -%}
-
- {%- endif -%}
- {% endfor %}
+ {% for image in images %} {%- if forloop.first -%}
+
+ {%- else -%}
+
+ {%- endif -%} {% endfor %}
- {% for image in images %}
- {%- if forloop.first -%}
-
-
-
- {%- else -%}
-
-
-
- {%- endif -%}
- {% endfor %}
+ {% for image in images %} {%- if forloop.first -%}
+
+
+
+ {%- else -%}
+
+
+
+ {%- endif -%} {% endfor %}
-
+
+
Previous
-
+
Next
-
+{%- else -%}
+
+
+ {% for image in images %} {%- if forloop.first -%}
+
+ {%- else -%}
+
+ {%- endif -%} {% endfor %}
+
+
+
+ {% for image in images %} {%- if forloop.first -%}
+
+
+
+ {%- else -%}
+
+
+
+ {%- endif -%} {% endfor %}
+
+
+
+
+ Previous
+
+
+
+
+ Next
+
+
+{%- endif -%}
+