1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Fix icons and build due to jinja changes

This commit is contained in:
squidfunk 2017-01-08 18:27:01 +01:00
parent 03604c5e27
commit 6d01f17193
8 changed files with 21 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@
{% include "partials/fonts.html" %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-a2651bb338.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-96d55a1439.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %}

View File

@ -13,11 +13,11 @@
{{ nav_item.title}}
</label>
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}
{% for nav_item in nav_item.children %}
{% set temp = path %}
{% set path = path + "-" + loop.index | string %}
{% with path = base + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% set path = temp %}
{% endwith %}
{% endfor %}
</ul>
</nav>

View File

@ -16,8 +16,9 @@
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% with path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>

View File

@ -46,3 +46,8 @@
cursor: pointer;
}
}
// Representational classes
.md-icon {
@extend %md-icon;
}

View File

@ -42,13 +42,13 @@
{{ nav_item.title}}
</label>
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}
<!-- Render nested item list -->
{% for nav_item in nav_item.children %}
{% set temp = path %}
{% set path = path + "-" + loop.index | string %}
{% with path = base + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% set path = temp %}
{% endwith %}
{% endfor %}
</ul>
</nav>

View File

@ -39,8 +39,9 @@
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% with path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>