Add list of articles by same author(s) to each article page It is in the form of a carousel

This commit is contained in:
Matthew Grove
2019-03-05 21:54:26 +00:00
parent 3b67b7a5d7
commit c3ac6f5335
30 changed files with 992 additions and 84 deletions

39
_site/js/article-page.js Normal file
View File

@@ -0,0 +1,39 @@
$(document).ready(function(){
// initiate carousel
$('.carousel').slick({
dots: true,
infinite: false,
speed: 300,
slidesToShow: 4,
slidesToScroll: 4,
adaptiveHeight: true,
autoplay: true,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 2,
dots: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
// overwrite auto-generated inline styling
$(".slick-prev, .slick-next").hide();
});