mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
refactor: modify file structure to improve customizability
This commit is contained in:
parent
9b2e5a305c
commit
67b58641e5
16 changed files with 156 additions and 157 deletions
18
templates/partials/post_navigation.html
Normal file
18
templates/partials/post_navigation.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% if page.lower or page.higher %}
|
||||
<nav class="block-bg mt-12 flex rounded-lg text-lg">
|
||||
{% if page.higher %}
|
||||
<a
|
||||
class="block-hover-mask flex w-1/2 items-center rounded-l-md p-6 pr-3 font-semibold no-underline"
|
||||
href="{{ page.higher.permalink }}"
|
||||
><span class="mr-1.5">←</span><span>{{ page.higher.title }}</span></a
|
||||
>
|
||||
{% endif %}<!---->
|
||||
{% if page.lower %}
|
||||
<a
|
||||
class="block-hover-mask ml-auto flex w-1/2 items-center justify-end rounded-r-md p-6 pl-3 font-semibold no-underline"
|
||||
href="{{ page.lower.permalink }}"
|
||||
><span>{{ page.lower.title }}</span><span class="ml-1.5">→</span></a
|
||||
>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue