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) }}">
|
||||
{% endfor %}
|
||||
<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 %}
|
||||
{% block htmltitle %}
|
||||
{% if page and page.meta and page.meta.title %}
|
||||
@ -74,7 +74,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<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 }}">
|
||||
{% endfor %}
|
||||
{% block extrahead %}{% endblock %}
|
||||
@ -199,7 +199,7 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
@ -151,7 +151,7 @@
|
||||
href="{{ 'assets/fonts/material-icons.css' | url }}" />
|
||||
|
||||
<!-- Custom stylesheets -->
|
||||
{% for path in extra_css %}
|
||||
{% for path in config["extra_css"] %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
||||
{% endfor %}
|
||||
|
||||
@ -356,7 +356,7 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% for path in extra_javascript %}
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user