Skip to content

Commit

Permalink
change "gallery" to "carousel"
Browse files Browse the repository at this point in the history
  • Loading branch information
cboucher01 committed May 22, 2024
1 parent e4d15a4 commit e7f1753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions _includes/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
>

<div class="carousel-inner">
{% for item in page.gallery %}
{% for item in page.carousel %}

<div class="{{ item.class | default: carousel-item }}">
<img
class="d-block w-100"
src="{{ item.path | relative_url }}"
alt="{{ item.alt }}"
/>
{% if item.caption %}
{% if item.caption != "" %}
<div class="carousel-caption d-none d-md-block">
<p style="margin:.75rem">{{ item.caption }}</p>
</div>
Expand Down Expand Up @@ -69,7 +69,7 @@
</div>
<ol class="carousel-indicators">
<!--adds an indicator for every slide-->
{% for item in page.gallery %}
{% for item in page.carousel %}
{% if forloop.first %}
<li
data-target="#carouselControls"
Expand Down
2 changes: 1 addition & 1 deletion current/disoriented.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Disoriented: The First Asian Students, 1893-1924"
layout: page
phase: P4
gallery:
carousel:
- path: assets/images/installation/Who-Built-Bryn-Mawr_0003.jpg
alt: "A photograph of the Disoriented installation in Special Collections"
caption:
Expand Down

0 comments on commit e7f1753

Please sign in to comment.