Og info appears only if oembed isn't available

This commit is contained in:
Fábián Tamás László 2013-06-14 07:38:24 +02:00 committed by Jonne Haß
parent 22c644c2ae
commit 1a3ead3619
2 changed files with 21 additions and 18 deletions

View file

@ -6,7 +6,7 @@
{{#if o_embed_cache.data}}
{{{o_embed_cache.data.html}}}
{{/if}}
{{/if}}
{{else}}
{{#if open_graph_cache}}
<div class="opengraph">
<a href="{{open_graph_cache.url}}" target="_blank">
@ -16,6 +16,7 @@
</a>
</div>
{{/if}}
{{/if}}
<header>{{{headline}}}</header>
<section class="body">{{{body}}}</section>

View file

@ -1,4 +1,5 @@
{{#if open_graph_cache}}
{{#unless o_embed_cache}}
{{#if open_graph_cache}}
<a href="{{open_graph_cache.url}}" target="_blank">
<div>
<img src="{{open_graph_cache.image}}" />
@ -6,4 +7,5 @@
<p>{{open_graph_cache.description}}</p>
</div>
</a>
{{/if}}
{{/if}}
{{/unless}}