bulma/docs/_layouts/documentation.html

128 lines
3.9 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 16:59:04 +00:00
{% assign current_category = page.doc-tab %}
2018-04-09 11:45:52 +00:00
{% assign current_link_id = page.breadcrumb | last %}
2018-04-09 19:19:29 +00:00
{% assign current_link = site.data.links.by_id[current_link_id] %}
2018-04-09 16:59:04 +00:00
{% assign category_links = site.data.links.categories[current_category] %}
2018-04-09 11:45:52 +00:00
{% 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
2018-04-09 13:15:31 +00:00
{% if previous_link or next_link %}
<nav class="bd-prev-next">
{% if previous_link %}
<a href="{{ site.url }}{{ previous_link.path }}" title="{{ previous_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
2018-04-09 11:45:52 +00:00
2018-04-09 13:15:31 +00:00
{% if next_link %}
<a href="{{ site.url }}{{ next_link.path }}" title="{{ next_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
</nav>
{% endif %}
2018-04-09 09:35:44 +00:00
</div>
<header class="bd-header">
2018-04-09 15:50:33 +00:00
<div class="bd-header-titles">
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle is-4">
2018-04-09 19:19:29 +00:00
{% if current_link.subtitle %}
{{ current_link.subtitle }}
{% else %}
{{ page.subtitle }}
{% endif %}
2018-04-09 15:50:33 +00:00
</p>
{% if page.meta %}
{%
include meta.html
colors=page.meta.colors
sizes=page.meta.sizes
variables=page.meta.variables
experimental=page.meta.experimental
%}
{% endif %}
</div>
2018-04-09 13:15:31 +00:00
2018-04-09 15:50:33 +00:00
<div class="bd-header-carbon">
{% include carbon.html %}
</div>
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
2018-04-09 19:19:29 +00:00
<nav class="bd-prev-next-bis">
{% if previous_link %}
<a class="bd-prev-next-bis-previous" href="{{ site.url }}{{ previous_link.path }}" title="{{ previous_link.name }}">
← {{ previous_link.name }}
</a>
{% endif %}
{% if next_link %}
<a class="bd-prev-next-bis-next" href="{{ site.url }}{{ next_link.path }}" title="{{ next_link.name }}">
{{ next_link.name }} →
</a>
{% endif %}
</nav>
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">
2018-04-09 19:19:29 +00:00
{% unless page.hide_categories %}
{% include elements/categories-nav.html %}
{% endunless %}
2018-04-09 09:35:44 +00:00
</aside>
2018-04-09 15:15:58 +00:00
</div>
2017-07-24 18:36:40 +00:00
</div>
2018-04-09 09:35:44 +00:00
</main>