Improve sections as pages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
242fcc2979
commit
fba1b06503
4 changed files with 35 additions and 42 deletions
|
@ -1,6 +1,8 @@
|
||||||
+++
|
+++
|
||||||
title = "Quick Start"
|
title = "Quick Start"
|
||||||
weight = 5
|
weight = 0
|
||||||
|
sort_by = "weight"
|
||||||
|
template = "documentation.html"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
{% include "partials/doc/page_toc.html" %}
|
{% include "partials/doc/page_toc.html" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="2xl:hidden">
|
<div class="2xl:hidden">
|
||||||
{% if page.earlier or page.later or page.lighter or page.heavier %}
|
{% if page.earlier or page.later or page.lighter or page.heavier or page.pages %}
|
||||||
|
{% include "partials/doc/pagination.html" %}
|
||||||
|
{% elif page.ancestors and page.ancestors | length == 3 %}
|
||||||
{% include "partials/doc/pagination.html" %}
|
{% include "partials/doc/pagination.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,7 +26,9 @@
|
||||||
</ol>
|
</ol>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="bg-gray-100 rounded-bl-lg">
|
<div class="bg-gray-100 rounded-bl-lg">
|
||||||
{% if page.earlier or page.later or page.lighter or page.heavier %}
|
{% if page.earlier or page.later or page.lighter or page.heavier or page.pages %}
|
||||||
|
{% include "partials/doc/pagination.html" %}
|
||||||
|
{% elif page.ancestors and page.ancestors | length == 3 %}
|
||||||
{% include "partials/doc/pagination.html" %}
|
{% include "partials/doc/pagination.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,64 +7,51 @@
|
||||||
</div>
|
</div>
|
||||||
<nav class="flex space-x-4 items-center justify-center p-4">
|
<nav class="flex space-x-4 items-center justify-center p-4">
|
||||||
{% if page.earlier %}
|
{% if page.earlier %}
|
||||||
|
{% set left = page.earlier %}
|
||||||
|
{% elif page.lighter %}
|
||||||
|
{% set left = page.lighter %}
|
||||||
|
{% elif page.ancestors and page.ancestors | length == 3 %}
|
||||||
|
{% set left_path = page.ancestors | last %}
|
||||||
|
{% set left = get_section(path=left_path) %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if left %}
|
||||||
<div>
|
<div>
|
||||||
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
||||||
href="{{ page.earlier.permalink }}"
|
href="{{ left.permalink }}"
|
||||||
title="{{ page.earlier.title }}">
|
title="{{ left.title }}">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
xmlns="http://www.w3.org/2000/svg">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
d="M7 16l-4-4m0 0l4-4m-4 4h18"></path>
|
d="M7 16l-4-4m0 0l4-4m-4 4h18"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
<span class="mt-0.5 2xl:hidden">{{ left.title }}</span>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if page.later %}
|
|
||||||
<div>
|
|
||||||
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
|
||||||
href="{{ page.later.permalink }}"
|
|
||||||
title="{{ page.later.title }}">
|
|
||||||
<span class="icon">
|
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
||||||
d="M17 8l4 4m0 0l-4 4m4-4H3"></path>
|
|
||||||
</svg>
|
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.lighter %}
|
{% if page.later %}
|
||||||
<div>
|
{% set right = page.later %}
|
||||||
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
{% elif page.heavier %}
|
||||||
href="{{ page.lighter.permalink }}"
|
{% set right = page.heavier %}
|
||||||
title="{{ page.lighter.title }}">
|
{% elif page.pages %}
|
||||||
<span class="icon flex space-x-1.5 2xl:inline 2xl:space-x-0">
|
{% set right = page.pages | first %}
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
||||||
d="M7 16l-4-4m0 0l4-4m-4 4h18"></path>
|
|
||||||
</svg>
|
|
||||||
<span class="mt-0.5 2xl:hidden">{{ page.lighter.title }}</span>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.heavier %}
|
|
||||||
|
{% if right %}
|
||||||
<div>
|
<div>
|
||||||
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
<a class="flex items-center space-x-1 hover:text-garage-orange text-garage-gray text-sm bg-white transform hover:scale-110 transition border border-garage-orange p-2.5 rounded-full"
|
||||||
href="{{ page.heavier.permalink }}"
|
href="{{ right.permalink }}"
|
||||||
title="{{ page.heavier.title }}">
|
title="{{ right.title }}">
|
||||||
<span class="icon flex space-x-1.5 2xl:inline 2xl:space-x-0">
|
<span class="icon">
|
||||||
<span class="mt-0.5 2xl:hidden">{{ page.heavier.title }}</span>
|
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
xmlns="http://www.w3.org/2000/svg">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
d="M17 8l4 4m0 0l-4 4m4-4H3"></path>
|
d="M17 8l4 4m0 0l-4 4m4-4H3"></path>
|
||||||
</svg>
|
</svg>
|
||||||
|
<span class="mt-0.5 2xl:hidden">{{ right.title }}</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue