2024-09-12 17:03:11 +02:00
|
|
|
{%- import "components/social_card.html" as sc -%}
|
|
|
|
{% extends "base.html" %}
|
2024-10-01 21:02:19 +02:00
|
|
|
|
|
|
|
{% block og_meta %}
|
|
|
|
<meta property="og:title" content="{{title}} @michalvankodev" />
|
|
|
|
<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 %}
|
|
|
|
|
2024-09-12 17:03:11 +02:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<section id="blog-container" class="lg:grid lg:grid-cols-[2fr_1fr] lg:grid-rows-[min-content_1fr] lg:gap-x-32 max-w-maxindex mx-auto">
|
|
|
|
<section id="blog-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">
|
|
|
|
{% if let Some(t) = tag %}
|
2024-09-20 10:44:59 +02:00
|
|
|
#{{t}}
|
2024-09-12 17:03:11 +02:00
|
|
|
{% else %}
|
|
|
|
Blog posts
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<section id="blog-tags">
|
|
|
|
<ul class="mx-5">
|
|
|
|
{% for tag in blog_tags %}
|
|
|
|
<li class="inline-block mx-0.5 p-0.5 md:text-xl">
|
|
|
|
<a href="/blog/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">
|
2024-09-12 17:03:11 +02:00
|
|
|
|
|
|
|
<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">
|
2024-09-12 17:03:11 +02:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</section> <!-- /#blog-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-12 17:03:11 +02:00
|
|
|
|
2024-09-27 11:52:25 +02:00
|
|
|
<ul class="mx-6">
|
2024-09-12 17:03:11 +02:00
|
|
|
{% for project in featured_projects %}
|
2024-09-27 11:52:25 +02:00
|
|
|
<li class="my-4">
|
2024-09-12 17:03:11 +02:00
|
|
|
{% 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>
|
2024-09-12 17:03:11 +02:00
|
|
|
</section> <!-- /#showcase -->
|
|
|
|
</section> <!-- /#blog-container -->
|
|
|
|
{% endblock %}
|