mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 16:51:35 +01:00
feat: post navigation support auto wrap
This commit is contained in:
parent
6e7ded7511
commit
11028d729f
4 changed files with 82 additions and 72 deletions
|
|
@ -1,15 +1,15 @@
|
|||
{% if page.lower or page.higher %}
|
||||
<nav class="block-bg mt-12 flex rounded-lg text-lg">
|
||||
<nav class="block-bg mt-12 flex flex-wrap 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"
|
||||
class="block-hover-mask flex min-w-[50%] grow 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"
|
||||
class="block-hover-mask ml-auto flex min-w-[50%] grow 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
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue