mirror of
https://github.com/tchartron/blow
synced 2024-11-27 14:50:56 +00:00
update
This commit is contained in:
parent
ee5de5f02f
commit
f39e3e42a0
1 changed files with 6 additions and 60 deletions
|
@ -3,19 +3,19 @@
|
|||
{% block content %}
|
||||
<div class="flex items-center flex-col md:mt-10">
|
||||
<h1 class="text-2xl text-bold mb-6">
|
||||
{{ page.title }}
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
<div class="flex flex-col gap-y-6 w-2/3">
|
||||
{% if paginator %}
|
||||
{% set pages = paginator.pages %}
|
||||
{% else %}
|
||||
{% set pages = term.pages %}
|
||||
{% set pages = section.pages %}
|
||||
{% endif %}
|
||||
|
||||
<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>
|
||||
<!-- <h2 class="text-2xl text-bold"><a href='{{ section.permalink }}'>{{ section.title }}</a></h2> -->
|
||||
<p class="text-bold">{{ section.description }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Read time and word count -->
|
||||
|
@ -27,7 +27,7 @@
|
|||
<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 class="ml-1">{{ section.reading_time }} min</span>
|
||||
</span>
|
||||
<span class="flex">
|
||||
<!-- Icon pencil -->
|
||||
|
@ -38,66 +38,12 @@
|
|||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Author and publish date -->
|
||||
<div class="flex w-2/3 space-x-3 text-gray-900 dark:text-gray-400">
|
||||
<span class="flex items-center">
|
||||
<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="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
|
||||
</svg>
|
||||
<span class="ml-1"><time datetime="{{ page.date }}">Published on {{ page.date | date(format='%B %d, %Y') }}</time></span>
|
||||
</span>
|
||||
<span class="flex items-center">
|
||||
<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="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path>
|
||||
</svg>
|
||||
{% if extra.author.name and extra.author.name %}
|
||||
<span class="ml-1">{{ extra.author.name }}</span>
|
||||
<img class="rounded-full h-9 w-9 ml-1" src="{{ extra.author.avatar }}">
|
||||
{% else %}
|
||||
<span class="ml-1">{{ config.extra.default_author.name }}</span>
|
||||
<img class="rounded-full h-9 w-9 ml-1" src="{{ config.extra.default_author.avatar }}">
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 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-1/3">
|
||||
{% if page.taxonomies.tags %}
|
||||
<p>
|
||||
Tags:
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a class="text-gray-900 dark:text-gray-400 flex py-1 items-center" href="{{ get_taxonomy_url(kind='tags', name=tag) }}">
|
||||
<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="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path>
|
||||
</svg>
|
||||
<span class="pl-1">{{tag}}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="text-bold mt-2">
|
||||
{{ page.content | safe }}
|
||||
{{ section.content | safe }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue