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) }}"> <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 %}

View File

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