Optional TOC sidebar (fixes #107)
This commit is contained in:
@ -15,6 +15,13 @@
|
||||
{%- if config.extra.nav.links %}
|
||||
{% include "partials/nav.html" %}
|
||||
{%- endif %}
|
||||
{%- if page.extra.toc_sidebar or section.extra.toc_sidebar -%}
|
||||
<div id="sidebar">
|
||||
<div>
|
||||
{%- include "partials/toc.html" -%}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
<main id="main-content">
|
||||
{% block custom %}{% endblock custom %}
|
||||
{% block content %}{% endblock content %}
|
||||
|
@ -3,6 +3,8 @@
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{%- include "partials/statements.html" -%}
|
||||
{%- if page.extra.toc and not page.extra.toc_sidebar -%}
|
||||
{%- include "partials/toc.html" -%}
|
||||
{%- endif -%}
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
||||
|
@ -3,6 +3,8 @@
|
||||
{% block content %}
|
||||
<h1>{{ section.title }}</h1>
|
||||
{%- include "partials/statements.html" -%}
|
||||
{%- if section.extra.toc and not section.extra.toc_sidebar -%}
|
||||
{%- include "partials/toc.html" -%}
|
||||
{%- endif -%}
|
||||
{{ section.content | safe }}
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user