mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
init: initial commit
This commit is contained in:
commit
e38bcddf57
48 changed files with 3752 additions and 0 deletions
49
templates/partials/page_list.html
Normal file
49
templates/partials/page_list.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!-- Pages -->
|
||||
{% if pages is defined %}<!---->
|
||||
{% elif paginator is defined %}<!---->
|
||||
{% set pages = paginator.pages %}<!---->
|
||||
{% elif term is defined %}<!---->
|
||||
{% set pages = term.pages %}<!---->
|
||||
{% elif section is defined %}<!---->
|
||||
{% set pages = section.pages %}<!---->
|
||||
{% endif %}<!---->
|
||||
|
||||
{% for page in pages %}
|
||||
<section
|
||||
class="relative mb-4 rounded-lg bg-white/80 p-4 first-of-type:mt-0 last-of-type:mb-0 active:scale-95 dark:bg-white/[8%] lg:mb-6 lg:p-6"
|
||||
>
|
||||
<h2 class="!my-0 pb-1 font-bold !leading-none">{{ page.title }}</h2>
|
||||
|
||||
<div class="not-prose my-1 truncate">
|
||||
{% if page.description %}
|
||||
<p>{{ page.description }}</p>
|
||||
{% elif page.summary %}<!---->
|
||||
{{ page.summary | safe }}<!---->
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include "partials/page_info.html" %}
|
||||
|
||||
<a class="absolute inset-0 text-[0]" href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
</section>
|
||||
{% endfor %}
|
||||
|
||||
<!-- Main Nav -->
|
||||
{% if paginator is defined %}
|
||||
<nav class="mt-16 flex">
|
||||
{% if paginator.previous %}
|
||||
<a
|
||||
class="rounded-full bg-black px-4 py-3 text-sm text-white no-underline shadow duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
|
||||
href="{{ paginator.previous }}"
|
||||
>← Prev Page</a
|
||||
>
|
||||
{% endif %}<!---->
|
||||
{% if paginator.next %}
|
||||
<a
|
||||
class="ml-auto rounded-full bg-black px-4 py-3 text-sm text-white no-underline shadow duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
|
||||
href="{{ paginator.next }}"
|
||||
>Next Page →</a
|
||||
>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue