Added opengraph content to mood page
This commit is contained in:
parent
176c6826e0
commit
c3a76fa886
2 changed files with 23 additions and 1 deletions
|
|
@ -99,6 +99,19 @@ a { color : $link-blue }
|
|||
height: 480px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.opengraph {
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
h2 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
img {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
article { //mood posts
|
||||
|
|
|
|||
|
|
@ -7,6 +7,15 @@
|
|||
{{{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>
|
||||
{{/if}}
|
||||
|
||||
<header>{{{headline}}}</header>
|
||||
<section class="body">{{{body}}}</section>
|
||||
|
|
|
|||
Loading…
Reference in a new issue