bulma/docs/_layouts/documentation.html

89 lines
2.4 KiB
HTML
Raw Normal View History

---
layout: default
route: documentation
---
2018-04-09 09:35:44 +00:00
{% include navbar.html id="Documentation" %}
2018-04-09 11:45:52 +00:00
{% assign current_link_id = page.breadcrumb | last %}
{% assign category_links = site.data.links.order[page.doc-tab] %}
{% for link_id in category_links %}
{% if link_id == current_link_id %}
{% unless forloop.first %}
{% assign previous_index = forloop.index0 | minus: 1 %}
{% assign previous_link_id = category_links[previous_index] %}
{% assign previous_link = site.data.links.by_id[previous_link_id] %}
{% endunless %}
{% unless forloop.last %}
{% assign next_index = forloop.index0 | plus: 1 %}
{% assign next_link_id = category_links[next_index] %}
{% assign next_link = site.data.links.by_id[next_link_id] %}
{% endunless %}
{% endif %}
{% endfor %}
2018-04-09 09:35:44 +00:00
<main class="bd-main">
<div class="bd-side-background"></div>
<div class="bd-main-container container">
<div class="bd-duo">
<div class="bd-lead">
<div class="bd-breadcrumb">
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
2018-04-09 11:45:52 +00:00
{% for key in page.breadcrumb %}
{% assign link = site.data.links.by_id[key] %}
<li{% if forloop.last %} class="is-active"{% endif %}>
<a href="{{ site.url }}{{ link.path }}">{{ link.name }}</a>
</li>
{% endfor %}
2018-04-09 09:35:44 +00:00
</ul>
</nav>
2018-04-09 11:45:52 +00:00
<nav class="bd-prev-next">
{% if previous_link %}
<a href="{{ site.url }}{{ previous_link.path }}" title="{{ previous_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
{% if next_link %}
<a href="{{ site.url }}{{ next_link.path }}" title="{{ next_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
</nav>
2018-04-09 09:35:44 +00:00
</div>
<header class="bd-header">
<h1 class="title">
{{ page.title }}
</h1>
2018-04-09 11:45:52 +00:00
<p class="subtitle is-4">
2018-04-09 09:35:44 +00:00
{{ page.subtitle }}
</p>
2018-04-09 09:35:44 +00:00
</header>
2018-04-09 09:35:44 +00:00
<div class="bd-content">
{{ content }}
</div>
2018-04-09 11:45:52 +00:00
{% include elements/improve-page.html %}
</div>
2018-04-09 09:35:44 +00:00
<aside class="bd-side">
{% include carbon.html %}
</aside>
</aside>
2017-07-24 18:36:40 +00:00
</div>
2018-04-09 09:35:44 +00:00
</main>