mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.5 KiB
73 lines
2.5 KiB
6 years ago
|
---
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
<div class="uk-section">
|
||
|
<div class="uk-container">
|
||
|
<div class="uk-grid-large" data-uk-grid>
|
||
|
|
||
|
<div class="sidebar-fixed-width uk-visible@m">
|
||
|
<div class="sidebar-docs uk-position-fixed">
|
||
6 years ago
|
<!-- -->
|
||
|
{% for section in site.data.navigation_evaluate %}
|
||
|
{% if section.title %}
|
||
|
<h5>{{ section.title }}</h5>
|
||
|
{% endif %}
|
||
6 years ago
|
<ul class="uk-nav uk-nav-default doc-nav">
|
||
|
{% for doc in section.docs %}
|
||
6 years ago
|
{% assign doc_url = doc | prepend:"/" | append:".html" %}
|
||
6 years ago
|
<!-- {% assign p = site.docs | where:"url", doc_url | first %} -->
|
||
|
{% for col in site.collections %}
|
||
|
{% for item in col.docs %}
|
||
|
{% if item.url == doc_url %}
|
||
|
{% assign doc_title = item.title %}
|
||
|
{% else %}
|
||
|
{% comment %}Do nothing{% endcomment %}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|
||
6 years ago
|
<li class="{% if doc_url == page.url %}uk-active{% endif %}"><a href="{{ doc_url }}">{{ doc_title }}</a></li>
|
||
6 years ago
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endfor %}
|
||
6 years ago
|
<!-- -->
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="uk-width-1-1 uk-width-expand@m">
|
||
|
|
||
|
<article class="uk-article">
|
||
|
|
||
|
<h1 class="uk-article-title">{{ page.title | escape }}</h1>
|
||
|
|
||
|
{% if page.subtitle %}<p class="subtitle uk-text-lead uk-text-muted">{{ page.subtitle }}</p>{% endif %}
|
||
|
|
||
6 years ago
|
|
||
6 years ago
|
<div class="uk-article-meta uk-margin-top uk-margin-medium-bottom">
|
||
|
{% include post-meta.html %}
|
||
|
</div>
|
||
|
|
||
|
<div class="article-content">
|
||
|
{{ content }}
|
||
|
{% include share.html %}
|
||
|
</div>
|
||
|
|
||
|
<hr class="uk-margin-medium">
|
||
|
|
||
|
{% include paginate-doc.html %}
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<script>
|
||
|
// Table of contents scroll to
|
||
|
UIkit.scroll('#markdown-toc a', {
|
||
|
duration: 400,
|
||
|
offset: 120
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|