mirror of
https://github.com/inventree/inventree-website.git
synced 2026-11-22 14:16:15 +00:00
Zensical Refactor (#300)
* refactor into zensical * adjust nav layout * more nav changes * update features page * open external hero links in new tab * consolidate small pages * add legacy page redirects * tweak content * further cleanup * adjust netlify config * disable redirect * remove redirect script * fix tag splitting for plugins * Display plugin metadata on left-hand side * revert icon changes * move gallery to index page * Add page deascriptions * fix image size for carousel * adjust theme
This commit is contained in:
1 parent
372cc20788
commit
dd7d563e79
347 files changed
+3009
-17807
No files matched your search
@@ -0,0 +1,14 @@
|
||||
/* Mount image carousels (see the 'gallery' macro in main.py).
|
||||
* 'document$' fires on every page load, including instant navigation. */
|
||||
document$.subscribe(function () {
|
||||
document.querySelectorAll('.splide.iv-gallery').forEach(function (element) {
|
||||
new Splide(element, {
|
||||
type: 'loop',
|
||||
perMove: 1,
|
||||
perPage: parseInt(element.dataset.perPage || '1', 10),
|
||||
breakpoints: { 720: { perPage: 1 } },
|
||||
autoplay: true,
|
||||
pagination: false,
|
||||
}).mount();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user