mirror of
https://github.com/inventree/inventree-docs.git
synced 2026-11-29 09:54:25 +00:00
Add image carousel to front page
This commit is contained in:
1 parent
f709084777
commit
d7ab4f2420
18 files changed
+67
-25
No files matched your search
@@ -1,3 +1,15 @@
|
||||
<div class='item'>
|
||||
<img src='{{ src }}' alt='{{ alt }}' style='width: 100%'>
|
||||
{% if 'readthedocs.org' in config.docs_dir %}
|
||||
{% set assets = '/en/latest/assets' %}
|
||||
{% else %}
|
||||
{% set assets = '/assets' %}
|
||||
{% endif %}
|
||||
|
||||
{% if 'http' in src %}
|
||||
{% set img_url = src %}
|
||||
{% else %}
|
||||
{% set img_url = assets + '/images/' + src %}
|
||||
{% endif %}
|
||||
|
||||
<div class='item{% if active %} active{% endif %}'>
|
||||
<img src='{{ img_url }}' alt='{{ alt }}' style='width: 100%'>
|
||||
</div>
|
||||
Reference in new issue
Block a user