michalvankodev-site/templates/post_list.html

64 lines
2.1 KiB
HTML
Raw Normal View History

{%- import "components/social_card.html" as sc -%}
{% extends "base.html" %}
2024-10-01 21:02:19 +02:00
{% block og_meta %}
2024-10-02 15:32:40 +02:00
<meta property="og:title" content="{{og_title}} @michalvankodev" />
2024-10-01 21:02:19 +02:00
<meta property="og:type" content="website" />
<meta property="og:url" content="https://michalvanko.dev{{current_url}}" />
<meta property="og:image" content="https://michalvanko.dev/images/m-logo.svg" />
{% endblock %}
{% block content %}
2024-10-03 14:59:28 +02:00
<section id="post-container" class="lg:grid lg:grid-cols-[2fr_1fr] lg:grid-rows-[min-content_1fr] xl:gap-x-32 max-w-maxindex mx-auto">
<section id="post-list" class="lg:row-span-2">
{% if posts.len() == 0 %}
<p class="no-posts">You've found void in the space.</p>
{% else %}
<h1 class="m-5 text-4xl text-blue-950 font-extrabold md:text-6xl">
2024-10-02 15:32:40 +02:00
{{title}}
</h1>
2024-10-03 14:59:28 +02:00
<section id="tags-list">
<ul class="mx-5">
2024-10-02 15:32:40 +02:00
{% for tag in tags %}
<li class="inline-block mx-0.5 p-0.5 md:text-xl">
2024-10-02 15:32:40 +02:00
<a href="/{{segment}}/tags/{{tag}}" class="text-pink-950">#{{tag|capitalize}}</a>
</li>
{% endfor %}
</ul>
</section>
2024-09-20 11:51:29 +02:00
<hr class="border-slate-300 m-5 md:my-8">
<ul class="mx-5">
{% for post in posts %}
<li>
{% include "components/blog_post_preview.html" %}
2024-09-20 11:51:29 +02:00
<hr class="border-slate-300 my-5 md:my-8">
</li>
{% endfor %}
</ul>
{% endif %}
2024-10-03 14:59:28 +02:00
</section> <!-- /#post-list -->
<section id="socials" class="hidden lg:block">
{% include "sections/social.html" %}
</section> <!-- /#socials -->
<section id="showcase" class="hidden lg:block">
2024-09-27 11:52:25 +02:00
<h2 class="text-blue-950 font-bold text-2xl m-5 md:text-4xl"><a href="/showcase" class="text-blue-950 no-underline">Showcase</a></h2>
2024-09-27 11:52:25 +02:00
<ul class="mx-6">
{% for project in featured_projects %}
2024-09-27 11:52:25 +02:00
<li class="my-4">
{% include "components/project_preview_card.html" %}
</li>
{% endfor %}
</ul>
2024-09-27 11:52:25 +02:00
<section class="text-center my-3 md:text-lg">
<a href="/showcase">check out more projects</a>
</section>
</section> <!-- /#showcase -->
2024-10-03 14:59:28 +02:00
</section> <!-- /#post-list-container -->
{% endblock %}