fixyfixy
This commit is contained in:
parent
a6862bec83
commit
9f90a44f46
35 changed files with 198 additions and 148 deletions
|
@ -5,51 +5,49 @@
|
|||
<h1 class="text-2xl text-bold mb-6">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
<div class="p-4 mb-8 mx-8 [&>*]:py-4">
|
||||
{{ section.content | safe }}
|
||||
</div>
|
||||
<div class="flex flex-col gap-y-6 w-full px-4 sm:w-2/3">
|
||||
{% if paginator %}
|
||||
{{ paginator }}
|
||||
{% set pages = paginator.pages %}
|
||||
{% else %}
|
||||
{% set pages = section.pages %}
|
||||
{% set pages = section.subsections %}
|
||||
{% endif %}
|
||||
|
||||
{% for page in pages %}
|
||||
<div class="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-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>
|
||||
|
||||
<!-- Read time and word count -->
|
||||
<div class="flex flex-wrap py-2">
|
||||
<div class="flex items-center w-1/3">
|
||||
<div class="flex space-x-3 text-gray-900 dark:text-gray-400">
|
||||
<span class="flex">
|
||||
<!-- Icon clock -->
|
||||
<svg class="w-6 h-6" 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="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
||||
</svg>
|
||||
<span class="ml-1">{{ page.reading_time }} min</span>
|
||||
</span>
|
||||
<span class="flex">
|
||||
<!-- Icon pencil -->
|
||||
<svg class="w-6 h-6" 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="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path>
|
||||
</svg>
|
||||
<span class="ml-1">{{ page.word_count }} words</span>
|
||||
</span>
|
||||
</div>
|
||||
{% if page %}
|
||||
{% set page = get_section(path=page) %}
|
||||
{% 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="flex-1 rounded-lg">
|
||||
<img src="{{ resized.url }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Summary -->
|
||||
<div class="text-bold mt-2">
|
||||
{{ page.summary | safe }}
|
||||
<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 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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue