mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed #841: Additional path levels for extra CSS and JS
This commit is contained in:
parent
a629c5948a
commit
7f08e2849a
@ -36,7 +36,7 @@
|
|||||||
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
|
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
|
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
|
||||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-3.0.1">
|
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-3.0.2">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block htmltitle %}
|
{% block htmltitle %}
|
||||||
{% if page and page.meta and page.meta.title %}
|
{% if page and page.meta and page.meta.title %}
|
||||||
@ -74,7 +74,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/fonts/material-icons.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/fonts/material-icons.css' | url }}">
|
||||||
{% for path in extra_css %}
|
{% for path in config["extra_css"] %}
|
||||||
<link rel="stylesheet" href="{{ path | url }}">
|
<link rel="stylesheet" href="{{ path | url }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% block extrahead %}{% endblock %}
|
{% block extrahead %}{% endblock %}
|
||||||
@ -199,7 +199,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script>app.initialize({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
|
<script>app.initialize({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
|
||||||
{% for path in extra_javascript %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
href="{{ 'assets/fonts/material-icons.css' | url }}" />
|
href="{{ 'assets/fonts/material-icons.css' | url }}" />
|
||||||
|
|
||||||
<!-- Custom stylesheets -->
|
<!-- Custom stylesheets -->
|
||||||
{% for path in extra_css %}
|
{% for path in config["extra_css"] %}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
@ -356,7 +356,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% for path in extra_javascript %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user