2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-18 13:05:25 +00:00
Files
.github
_data
_includes
base
block
fnc
partial
app_carousel.html
plugin_card.html
team.html
testimonials.html
_layouts
_news
_plugins
_posts
_publishers
_repo
about
alternatives
assets
extend
use
.gitignore
404.md
Gemfile
Gemfile.lock
LICENSE
README.md
_config.yml
blog.html
contribute.md
demo.md
deploy.md
functions.md
index.md
news.html
newsletter.md
package-lock.json
package.json
plugins.html
postcss.config.js
publishers.html
tailwind.config.js
inventree-website/_includes/app_carousel.html
2022-08-08 10:58:03 +10:00

27 lines
755 B
HTML

<section id='image-carousel' class='splide'>
<div class='splide__track'>
<ul class='splide__list' style='list-style-type: none; list-style: none;'>
{% for image in site.static_files %}
{% if image.path contains 'appgallery/' %}
<li class='splide__slide'>
<img src="{{ image.path | relative_url }}" alt="" />
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide('#image-carousel', {
type: 'loop',
perPage: 3,
autoPlay: true,
pagination: false,
// pagination: false,
// focus: 'center',
}).mount();
});
</script>