better sections
This commit is contained in:
parent
9f90a44f46
commit
dbb135a12e
|
@ -1,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
title = "Groups"
|
title = "Groups"
|
||||||
description = ""
|
description = ""
|
||||||
template = "other_section.html"
|
template = "section.html"
|
||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -594,6 +594,9 @@
|
||||||
.flex-wrap {
|
.flex-wrap {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
.content-center {
|
||||||
|
align-content: center;
|
||||||
|
}
|
||||||
.items-center {
|
.items-center {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
@ -991,6 +994,10 @@
|
||||||
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
||||||
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||||
}
|
}
|
||||||
|
.shadow-xl {
|
||||||
|
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
||||||
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||||
|
}
|
||||||
.ring-1 {
|
.ring-1 {
|
||||||
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
||||||
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||||
|
|
|
@ -13,34 +13,45 @@
|
||||||
{{ paginator }}
|
{{ paginator }}
|
||||||
{% set pages = paginator.pages %}
|
{% set pages = paginator.pages %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if section.subsections %}
|
||||||
{% set pages = section.subsections %}
|
{% set pages = section.subsections %}
|
||||||
|
{% set subs = section.subsections %}
|
||||||
|
{% else %}
|
||||||
|
{% set pages = section.pages %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
|
|
||||||
{% if page %}
|
{% if subs %}
|
||||||
{% set page = get_section(path=page) %}
|
{% set page = get_section(path=page) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if page.extra.image %}
|
||||||
{% set image = page.path ~ page.extra.image %}
|
{% set image = page.path ~ page.extra.image %}
|
||||||
|
{% endif %}
|
||||||
{% if image %}
|
{% if image %}
|
||||||
{% set resized = resize_image(path="/content" ~ image, width=200, height=200, op="fit_height") %}
|
{% set resized = resize_image(path="/content" ~ image, width=200, height=200, op="fit_height") %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set resized = "" %}
|
{% set resized = "" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="flex flex-wrap space-x-4 border border-2 border-gray-200 dark:border-black rounded-xl p-5 shadow-2xl transform transition duration-500 hover:scale-105 bg-gray-200 dark:bg-gray-800">
|
<div class="flex flex-wrap space-x-4 border border-2 border-gray-200 dark:border-black rounded-xl p-5 shadow-xl transform transition duration-500 hover:scale-105 bg-gray-200 dark:bg-gray-800 cursor-pointer" onclick='location.href="{{ page.permalink }}";'>
|
||||||
|
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<div class="flex-1 rounded-lg">
|
{% if resized %}
|
||||||
<img src="{{ resized.url }}"/>
|
<div class="flex-1 rounded-lg content-center">
|
||||||
|
<img class="rounded-lg" src="{{ resized.url }}"/>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="flex flex-col flex-3">
|
<div class="flex flex-col flex-3">
|
||||||
<h2 class="text-2xl text-bold"><a href='{{ page.permalink }}'>{{ page.title }}</a></h2>
|
<h2 class="text-2xl text-bold"><a href='{{ page.permalink }}'>{{ page.title }}</a></h2>
|
||||||
<p class="text-bold text-ellipsis max-h-12">{{ page.description }}</p>
|
<p class="text-bold text-ellipsis">{{ page.description }}</p>
|
||||||
|
|
||||||
<!-- Summary -->
|
<!-- Summary -->
|
||||||
<div class="text-bold mt-2">
|
<div class="text-bold mt-8">
|
||||||
<a class="flex py-2" href='{{ page.permalink }}'>
|
<a class="flex py-2" href='{{ page.permalink }}'>
|
||||||
Read More
|
Read More
|
||||||
<svg class="w-6 h-6 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-6 h-6 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
|
Loading…
Reference in a new issue