recolor lumbung kios and lumbung gallery cards
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -30,8 +30,9 @@
|
||||
}
|
||||
|
||||
// remove box around "previous" page nav link (couldn't handle this with CSS nth-child)
|
||||
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
|
||||
|
||||
if (document.querySelector('[aria-label="Previous"]')) {
|
||||
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
|
||||
}
|
||||
// for toggling submenus in mobile navigation drawer
|
||||
let submenuLinks = document.querySelectorAll('.drawer .has-submenu');
|
||||
[...submenuLinks].forEach(submenuLink => {
|
||||
@ -39,6 +40,16 @@
|
||||
submenuLink.querySelector('.submenu').classList.toggle('opened')
|
||||
})
|
||||
})
|
||||
|
||||
// add classes for styling lumbung kios and lumbung gallery cards
|
||||
let cards = document.querySelectorAll('.shout.card');
|
||||
[...cards].forEach(card => {
|
||||
if (card.querySelector('a[href="/tags/lumbungkios"]')) {
|
||||
card.classList.add('lumbung-kios')
|
||||
} else if (card.querySelector('a[href="/tags/lumbunggallery"]')) {
|
||||
card.classList.add('lumbung-gallery')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user