Improve OG descriptions and fix Nix builds
This commit is contained in:
parent
25bc697309
commit
b0acb2fc9a
6 changed files with 87 additions and 45 deletions
|
|
@ -6,7 +6,7 @@
|
|||
{% include "fragments/common_headers.html" %}
|
||||
{% if let Some(title) = post.title %}<meta property="og:title" content="{{ title }}"/>{% else %}<meta property="og:title" content="{{ tags_post }}" />{% endif %}
|
||||
<meta property="og:url" content="/post/{{ post.id }}" />
|
||||
{% if let Some(description) = post.description %}<meta property="og:description" content="{{ description | markdown | escape }}" />{% endif %}
|
||||
{% if let Some(description) = description_plaintext %}<meta property="og:description" content="{{ description }}" />{% endif %}
|
||||
{% match post.media_type.as_ref() %} {% when "image" %}
|
||||
<meta property="og:image" content="/files/{{ post.media }}" />
|
||||
<meta property="og:image:width" content="{{ post.width }}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue