kopia lustrzana https://github.com/wagtail/bakerydemo
Remove unused templates
rodzic
2edb874589
commit
f524870d60
|
@ -1,32 +0,0 @@
|
|||
{% load navigation_tags wagtailcore_tags %}
|
||||
{% get_site_root as site_root %}
|
||||
|
||||
{% if calling_page|has_protocol_parent and calling_page.content_type.model == 'standardpage' %}
|
||||
<div class="off-canvas position-left reveal-for-large bla" id="offCanvasLeft" data-off-canvas>
|
||||
{% protocol_menu calling_page=calling_page %}
|
||||
</div>
|
||||
{% elif ancestor.has_children %}
|
||||
<div class="off-canvas position-left reveal-for-large" id="offCanvasLeft" data-off-canvas>
|
||||
<nav class="sidebar-nav">
|
||||
<h3>In this section</h3>
|
||||
<ul class="vertical menu">
|
||||
{% for menuitem in ancestor.children %}
|
||||
<li class="{% if menuitem.is_active %}is-active{% endif %}">
|
||||
<a href="{% pageurl menuitem %}">{{ menuitem.title }}</a>
|
||||
|
||||
{% if menuitem.is_active and menuitem.has_children %}
|
||||
<ul class="nested vertical menu is-active">
|
||||
{% for child in menuitem.children %}
|
||||
<li>
|
||||
<a href="{% pageurl child %}">{{ child.title }}</a>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
{% endif %}
|
|
@ -1,35 +0,0 @@
|
|||
{% if section_pages %}
|
||||
<nav class="sidebar-nav section-nav">
|
||||
<h3>In this section</h3>
|
||||
<ul class="vertical menu">
|
||||
{% for section_page in section_pages %}
|
||||
<li class="{% if section_page.is_active %}is-active{% endif %}">
|
||||
<a href="{{section_page.url}}">{{ section_page.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% if article_headings %}
|
||||
<div data-sticky-container>
|
||||
<div class="sticky" data-sticky data-sticky-on="large" data-margin-top="3" data-top-anchor="on-this-page:top" data-btm-anchor="main-end:bottom">
|
||||
<nav class="sidebar-nav article-nav">
|
||||
<h3 id="on-this-page">On this page</h3>
|
||||
<ul class="vertical menu" data-magellan data-bar-offset="60">
|
||||
{% for heading in article_headings %}
|
||||
<li>
|
||||
<a href="#{{heading.value|slugify}}">{{heading.value}}</a>
|
||||
{% if heading.children %}
|
||||
<ul>
|
||||
{% for subheading in heading.children %}
|
||||
<li><a href="#{{subheading|slugify}}">{{subheading}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
Ładowanie…
Reference in New Issue