mirror of
https://github.com/tchartron/blow
synced 2024-11-23 21:03:16 +00:00
83 lines
3.6 KiB
HTML
83 lines
3.6 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
<div class="flex items-center flex-col md:mt-40">
|
|
<h1 class="text-2xl text-bold">
|
|
{{ term.name }}
|
|
</h1>
|
|
<div class="">
|
|
{% if paginator %}
|
|
{% set pages = paginator.pages %}
|
|
{% else %}
|
|
{% set pages = term.pages %}
|
|
{% endif %}
|
|
|
|
{% for page in pages %}
|
|
<div class="border border-1 border-black rounded-xl">
|
|
<div>
|
|
<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">
|
|
<div class="w-1/3">
|
|
<span class="text-gray-700">
|
|
<!-- 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>{{ page.reading_time }} min,</span>
|
|
<!-- 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>{{ page.word_count }} words</span>
|
|
</span>
|
|
</div>
|
|
<!-- Author and publish date -->
|
|
<div class="w-2/3">
|
|
<span class="text-gray-700">
|
|
<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>{{ extra.author.name }} published on</span>
|
|
<img class="rounded-full h-9 w-9" src="{{ extra.author.avatar }}">
|
|
{% else %}
|
|
<span>{{ config.extra.default_author.name }} published on</span>
|
|
<img class="rounded-full h-9 w-9" src="{{ config.extra.default_author.avatar }}">
|
|
{% endif %}
|
|
<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><time datetime="{{ page.date }}">{{ page.date | date(format='%B %d, %Y') }}</time></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Summary -->
|
|
<div class="text-bold mt-2">
|
|
{{ page.summary | safe }}
|
|
<a href='{{ page.permalink }}'>
|
|
Read More
|
|
<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="M14 5l7 7m0 0l-7 7m7-7H3"></path>
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Categories and Tags -->
|
|
<div class="flex flex-wrap">
|
|
<div class="w-2/3">
|
|
|
|
</div>
|
|
<div class="w-1/3">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|