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,7 +6,7 @@
|
||||||
{{#if o_embed_cache.data}}
|
{{#if o_embed_cache.data}}
|
||||||
{{{o_embed_cache.data.html}}}
|
{{{o_embed_cache.data.html}}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{else}}
|
||||||
{{#if open_graph_cache}}
|
{{#if open_graph_cache}}
|
||||||
<div class="opengraph">
|
<div class="opengraph">
|
||||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<header>{{{headline}}}</header>
|
<header>{{{headline}}}</header>
|
||||||
<section class="body">{{{body}}}</section>
|
<section class="body">{{{body}}}</section>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{#unless o_embed_cache}}
|
||||||
{{#if open_graph_cache}}
|
{{#if open_graph_cache}}
|
||||||
<a href="{{open_graph_cache.url}}" target="_blank">
|
<a href="{{open_graph_cache.url}}" target="_blank">
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -7,3 +8,4 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/unless}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue