refactor: modify file structure to improve customizability

This commit is contained in:
st1020 2024-01-20 17:58:08 +08:00
parent 9b2e5a305c
commit 67b58641e5
16 changed files with 156 additions and 157 deletions

View 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 %}