Further improvements to Galleries
This commit is contained in:
parent
ef7cfccab8
commit
f365918b80
3 changed files with 8 additions and 3 deletions
|
|
@ -309,9 +309,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel {
|
.carousel {
|
||||||
height: 100%
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-item {
|
.carousel-item {
|
||||||
display: block
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.carousel-item img {
|
||||||
|
max-height: 667px;
|
||||||
|
}
|
||||||
|
|
@ -31,8 +31,7 @@ const GalleryCarousel = ({galleryImages, basepath, gallery}) => {
|
||||||
alt={item.attributes.Title}
|
alt={item.attributes.Title}
|
||||||
></Image></Link>
|
></Image></Link>
|
||||||
<Carousel.Caption >
|
<Carousel.Caption >
|
||||||
<h3>{item.title}</h3>
|
<h3>{item.attributes.Title}</h3>
|
||||||
<p>{item.body}</p>
|
|
||||||
</Carousel.Caption>
|
</Carousel.Caption>
|
||||||
</Carousel.Item>
|
</Carousel.Item>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ export async function getServerSideProps(context) {
|
||||||
|
|
||||||
const galleryImages = await getGalleryImages(context.params.gallery, page, 9)
|
const galleryImages = await getGalleryImages(context.params.gallery, page, 9)
|
||||||
|
|
||||||
|
console.log(galleryImages)
|
||||||
|
|
||||||
const { serverRuntimeConfig } = getConfig()
|
const { serverRuntimeConfig } = getConfig()
|
||||||
|
|
||||||
const pagedata = {
|
const pagedata = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue