add og tags
Some checks failed
test / cargo test (push) Failing after 1m26s

This commit is contained in:
2024-10-01 21:02:19 +02:00
parent da78b80587
commit 49f830cd44
11 changed files with 150 additions and 7 deletions

View File

@ -1,6 +1,17 @@
{% extends "base.html" %}
{% block title %}{{title}}{% endblock %}
{% 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) %}
<meta property="og:image" content="https://michalvanko.dev{{img}}" />
{% when None %}
<meta property="og:image" content="https://michalvanko.dev/images/m-logo.svg" />
{% endmatch %}
{% endblock %}
{% block content %}
<article class="mb-6">