image generation is now always wanted
Some checks failed
test / cargo test (push) Failing after 1m4s
Some checks failed
test / cargo test (push) Failing after 1m4s
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
<meta property="og:url" content="https://michalvanko.dev/{{segment}}/{{slug}}" />
|
||||
{% match thumbnail %}
|
||||
{% when Some with (img) %}
|
||||
{% 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 %}
|
||||
{% let src = crate::picture_generator::image_src_generator::generate_image_with_src(img, 1200, 630, "_og").unwrap_or("thumbnail not found".to_string())|safe %}
|
||||
<meta property="og:image" content="https://michalvanko.dev{{src}}" />
|
||||
{% when None %}
|
||||
<meta property="og:image" content="https://michalvanko.dev/images/m-logo.svg" />
|
||||
@ -28,7 +28,7 @@
|
||||
</header>
|
||||
|
||||
<section class="article-body">
|
||||
{{body|parse_markdown|escape("none")}}
|
||||
{{body|parse_markdown|safe}}
|
||||
</section>
|
||||
</article>
|
||||
|
||||
|
Reference in New Issue
Block a user