Continue redesigning website

Start template for article list for each year
This commit is contained in:
2020-03-03 07:26:53 +00:00
parent 8d6382d3a6
commit b382db281c
23 changed files with 675 additions and 794 deletions

View File

@@ -1,39 +1,6 @@
$(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();
// remove black bar if article has no content
if (! $.trim($(".article-content").html())) {
$(".article-content").hide();
}
});