Tweak OG metadata display below notes, hide image if empty
This commit is contained in:
parent
3483936158
commit
0e7d7a6625
1 changed files with 4 additions and 2 deletions
|
@ -226,10 +226,12 @@
|
||||||
{% for og in meta.og_metadata %}
|
{% for og in meta.og_metadata %}
|
||||||
{% if og.url %}
|
{% if og.url %}
|
||||||
<a href="{{ og.url }}" class="og-link" style="margin:30px 0;clear:both;display: flex;">
|
<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 }}">
|
<img style="width:100px;border-radius:3px;" src="{{ og.image | get_og_image_url }}">
|
||||||
</div>
|
</div>
|
||||||
<div style="padding:0 20px;">
|
{% endif %}
|
||||||
|
<div>
|
||||||
<strong>{{ og.title }}</strong>
|
<strong>{{ og.title }}</strong>
|
||||||
<p>{{ og.description | truncate(80) }}</p>
|
<p>{{ og.description | truncate(80) }}</p>
|
||||||
<small>{{ og.site_name }}</small>
|
<small>{{ og.site_name }}</small>
|
||||||
|
|
Loading…
Reference in a new issue