Convert list page into hugo templates

This commit is contained in:
hossainemruz 2020-04-18 02:19:46 +06:00
parent 607f15580c
commit 00465629d2
11 changed files with 98 additions and 19 deletions

View file

@ -26,7 +26,11 @@ var isMobile = false, isTablet = false, isLaptop = false;
// ======= Adjust height of the post cards =============
function adjustPostCardsHeight() {
if (!isMobile) { // no need to adjust height for mobile devices
let el = document.getElementById("post-cards").children;
let postCardHolder = document.getElementById("post-cards");
if (postCardHolder == null ){
return
}
let el = postCardHolder.children;
let maxHeight = 0;
for (let i = 0; i < el.length; i++) {
if (el[i].children[0].clientHeight > maxHeight) {