Fixed #841: Additional path levels for extra CSS and JS

This commit is contained in:
squidfunk 2018-08-07 11:10:19 +02:00
parent a629c5948a
commit 7f08e2849a
2 changed files with 5 additions and 5 deletions

View File

@ -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 %}

View File

@ -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 %}