2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-15 11:45:35 +00:00

Merge pull request #190 from inventree/404-fix-2

404 fix 2

(cherry picked from commit ee445a8ef6)
This commit is contained in:
Oliver
2021-10-11 20:50:09 +11:00
parent 1a35e2caf0
commit f26eb40910
7 changed files with 70 additions and 42 deletions

View File

@ -1,13 +1,8 @@
{% 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 %}
{% set img_url = config.assets_dir + '/images/' + src %}
{% endif %}
<li class='splide__slide'>