Og info appears only if oembed isn't available
This commit is contained in:
parent
22c644c2ae
commit
1a3ead3619
2 changed files with 21 additions and 18 deletions
|
|
@ -6,15 +6,16 @@
|
|||
{{#if o_embed_cache.data}}
|
||||
{{{o_embed_cache.data.html}}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if open_graph_cache}}
|
||||
<div class="opengraph">
|
||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||
<h2>{{{open_graph_cache.title}}}</h2>
|
||||
<img src="{{open_graph_cache.image}}"/>
|
||||
<p>{{open_graph_cache.description}}</p>
|
||||
</a>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if open_graph_cache}}
|
||||
<div class="opengraph">
|
||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||
<h2>{{{open_graph_cache.title}}}</h2>
|
||||
<img src="{{open_graph_cache.image}}"/>
|
||||
<p>{{open_graph_cache.description}}</p>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<header>{{{headline}}}</header>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
{{#if open_graph_cache}}
|
||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||
<div>
|
||||
<img src="{{open_graph_cache.image}}" />
|
||||
<strong>{{open_graph_cache.title}}</strong>
|
||||
<p>{{open_graph_cache.description}}</p>
|
||||
</div>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{#unless o_embed_cache}}
|
||||
{{#if open_graph_cache}}
|
||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||
<div>
|
||||
<img src="{{open_graph_cache.image}}" />
|
||||
<strong>{{open_graph_cache.title}}</strong>
|
||||
<p>{{open_graph_cache.description}}</p>
|
||||
</div>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue