michalvankodev-site/templates/blog_post.html

40 lines
1.3 KiB
HTML
Raw Normal View History

2024-01-11 22:16:38 +01:00
{% extends "base.html" %}
2024-10-01 21:02:19 +02:00
{% block og_meta %}
<meta property="og:title" content="{{title}}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://michalvanko.dev/blog/{{slug}}" />
{% match thumbnail %}
{% when Some with (img) %}
2024-10-02 10:24:24 +02:00
{% let src = crate::picture_generator::image_src_generator::generate_image_with_src(img, 1200, 630, "_og", true).unwrap_or("thumbnail not found".to_string())|safe %}
<meta property="og:image" content="https://michalvanko.dev{{src}}" />
2024-10-01 21:02:19 +02:00
{% when None %}
<meta property="og:image" content="https://michalvanko.dev/images/m-logo.svg" />
{% endmatch %}
{% endblock %}
2024-01-11 22:16:38 +01:00
{% block content %}
2024-09-10 21:58:57 +02:00
<article class="mb-6">
<header class="px-4 max-w-read mx-auto">
2024-09-18 18:36:54 +02:00
<h1 class="text-3xl md:text-4xl lg:text-6xl lg:mt-20 text-blue-900 mb-3 font-bold">{{title}}</h1>
2024-03-13 19:14:10 +01:00
<aside class="flex justify-between flex-row">
{% include "post_tag_list.html" %}
2024-09-20 11:51:29 +02:00
<section class="created-at m-1 text-right text-sm text-slate-600 md:text-lg">
2024-03-03 19:39:28 +01:00
<span>Published on</span>
<time datetime="{date}"> {{date|pretty_date}} </time>
</section>
</aside>
2024-03-02 13:12:55 +01:00
</header>
2024-01-11 22:16:38 +01:00
2024-09-10 21:58:57 +02:00
<section class="article-body">
{{body|escape("none")}}
</section>
2024-03-02 13:12:55 +01:00
</article>
2024-01-11 22:16:38 +01:00
2024-09-10 21:58:57 +02:00
<!-- TODO: Next recommendations for reading -->
2024-09-20 12:35:30 +02:00
<!-- TODO: Bact to all posts -->
2024-09-10 21:58:57 +02:00
2024-01-11 22:16:38 +01:00
{# footer #}
{% endblock %}