ahhhhhh
This commit is contained in:
parent
222de783d1
commit
160891b85a
24 changed files with 191 additions and 118 deletions
|
@ -16,29 +16,37 @@
|
|||
{% endif %}
|
||||
|
||||
{% for page in pages %}
|
||||
|
||||
{% if page %}
|
||||
{% set page = get_section(path=page) %}
|
||||
{% set image = page.path ~ "/" ~ page.extra.image %}
|
||||
{% set resized = resize_image(path=image, width=100, height=100) %}
|
||||
<div class="flex flex-col 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">
|
||||
{% endif %}
|
||||
|
||||
{% set image = page.path ~ page.extra.image %}
|
||||
{% if image %}
|
||||
{% set resized = resize_image(path="/content" ~ image, width=200, height=200, op="fit_height") %}
|
||||
{% else %}
|
||||
{% set resized = "" %}
|
||||
{% 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">
|
||||
|
||||
<!-- Image -->
|
||||
<div class="rounded-lg">
|
||||
<img src="{{ page.path ~ "/" ~ page.extra.image }}"/>
|
||||
<div class="flex-1 rounded-lg">
|
||||
<img src="{{ resized.url }}"/>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col py-2 justify-center">
|
||||
<h2 class="text-2xl text-bold"><a href='{{ page.permalink }}'>{{ page.title }}</a></h2>
|
||||
<p class="text-bold">{{ page.description }}</p>
|
||||
</div>
|
||||
<div class="flex flex-col flex-3">
|
||||
<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>
|
||||
|
||||
<!-- Summary -->
|
||||
<div class="text-bold mt-2">
|
||||
<a class="flex py-2" href='{{ page.permalink }}'>
|
||||
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">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<!-- Summary -->
|
||||
<div class="text-bold mt-2">
|
||||
<a class="flex py-2" href='{{ page.permalink }}'>
|
||||
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">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue