ahhhhhh
This commit is contained in:
parent
222de783d1
commit
160891b85a
24 changed files with 191 additions and 118 deletions
|
@ -102,7 +102,7 @@
|
|||
</svg>
|
||||
<span class="absolute right-2 hidden sm:block text-gray-400 text-sm leading-5 py-0.5 px-1.5 border border-gray-300 rounded-md">
|
||||
<kbd class="font-sans">
|
||||
<abbr title="Command" class="no-underline">⌘</abbr>
|
||||
<abbr title="Command" class="no-underline">Ctrl</abbr>
|
||||
</kbd>
|
||||
<kbd class="font-sans">K</kbd>
|
||||
</span>
|
||||
|
|
|
@ -61,21 +61,21 @@
|
|||
|
||||
<!-- Categories and Tags -->
|
||||
<div class="flex flex-wrap py-2">
|
||||
<div class="w-2/3">
|
||||
{% if page.taxonomies.categories %}
|
||||
<p>
|
||||
Categories:
|
||||
{% for category in page.taxonomies.categories %}
|
||||
<a class="text-gray-900 dark:text-gray-400 flex py-1 items-center" href="{{ get_taxonomy_url(kind='categories', name=category) }}">
|
||||
<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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
|
||||
</svg>
|
||||
<span class="pl-1">{{category}}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<!-- <div class="w-2/3">
|
||||
{% if page.taxonomies.categories %}
|
||||
<p>
|
||||
Categories:
|
||||
{% for category in page.taxonomies.categories %}
|
||||
<a class="text-gray-900 dark:text-gray-400 flex py-1 items-center" href="{{ get_taxonomy_url(kind='categories', name=category) }}">
|
||||
<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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
|
||||
</svg>
|
||||
<span class="pl-1">{{category}}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div> -->
|
||||
<div class="w-1/3">
|
||||
{% if page.taxonomies.tags %}
|
||||
<p>
|
||||
|
|
6
templates/shortcodes/icon.html
Normal file
6
templates/shortcodes/icon.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% set icon = "icons/" ~ icon ~ ".svg" %}
|
||||
{% if icon %}
|
||||
<span class="relative inline-block align-text-bottom icon">
|
||||
{{ icon | safe }}
|
||||
</span>
|
||||
{% endif %}
|
|
@ -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