WebsiteApp/_layouts/doc.html
2021-04-02 16:46:06 +02:00

76 lines
2.9 KiB
HTML

---
layout: default
---
<div class="uk-section uk-padding-remove">
<div class="uk-container">
<div class="uk-grid-large" data-uk-grid>
{% if page.sidebar == 'nosidebar' %}
{% else %}
<div class="sidebar-fixed-width uk-visible@m">
<div class="sidebar-docs uk-position-fixed uk-margin-top">
{% for section in site.data.navigation_docs %}
<h5>{{ section.title }}</h5>
<ul class="uk-nav uk-nav-default doc-nav">
{% for doc in section.docs %}
{% assign doc_url = doc | prepend:"/docs/" | append:"/" %}
{% assign p = site.docs | where:"url", doc_url | first %}
<li class="{% if doc_url == page.url %}uk-active{% endif %}"><a href="{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
{% endif %}
<div class="uk-width-1-1 uk-width-expand@m">
<article class="uk-article">
{% if page.sidebar == 'nosidebar' %}
{% else %}
<a class="uk-navbar-toggle uk-hidden@m" href="#offcanvas-docs" data-uk-toggle><span uk-icon="icon: lifesaver"></span>&nbsp;Documentation</a>
<h1 class="uk-article-title uk-margin-remove-top">{{ page.title | escape }}</h1>
{% endif %}
{% if page.subtitle %}<p class="uk-text-lead uk-text-muted uk-margin-top uk-margin-medium-bottom">{{ page.subtitle }}</p>{% endif %}
<!--
<div class="uk-article-meta uk-margin-top uk-margin-medium-bottom uk-flex uk-flex-middle">
{% include post-meta.html %}
</div>
-->
<div class="article-content">
{{ content }}
{% if site.share.doc %}
{% include share.html %}
{% endif %}
</div>
{% include hook-post-content-doc.html %}
<hr class="uk-margin-medium">
{% include paginate-doc.html %}
<hr class="uk-margin-medium">
<!--
{% include related-docs.html %}
-->
{% if site.disqus.shortname %}
{% include disqus_comments.html %}
{% endif %}
</article>
<script>
// Table of contents scroll to
UIkit.scroll('#markdown-toc a', {
duration: 400,
offset: 120
});
</script>
</div>
</div>
</div>