Tweak OG metadata display below notes, hide image if empty

This commit is contained in:
Thomas Sileo 2019-10-05 00:20:13 +02:00
parent 3483936158
commit 0e7d7a6625

View file

@ -226,10 +226,12 @@
{% for og in meta.og_metadata %}
{% if og.url %}
<a href="{{ og.url }}" class="og-link" style="margin:30px 0;clear:both;display: flex;">
<div>
{% if og.image | get_og_image_url %}
<div style="padding:0 20px;">
<img style="width:100px;border-radius:3px;" src="{{ og.image | get_og_image_url }}">
</div>
<div style="padding:0 20px;">
{% endif %}
<div>
<strong>{{ og.title }}</strong>
<p>{{ og.description | truncate(80) }}</p>
<small>{{ og.site_name }}</small>