Skip to content
Snippets Groups Projects
Commit 69321569 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[IMP] website_blog: add share meta

parent 1d6ac796
No related branches found
No related tags found
No related merge requests found
...@@ -261,6 +261,20 @@ ...@@ -261,6 +261,20 @@
<a class="fa fa-linkedin-square o_linkedin_complete" id="o_linkedin_complete"></a> <a class="fa fa-linkedin-square o_linkedin_complete" id="o_linkedin_complete"></a>
<a class="fa fa-google-plus-square o_google_complete" id="o_google_complete"></a> <a class="fa fa-google-plus-square o_google_complete" id="o_google_complete"></a>
</div> </div>
<t t-set='head'>
<t t-raw='head or ""'/>
<!-- Facebook and linkedin sharing data -->
<meta property="og:type" content="website" />
<meta property="og:url" t-att-content="request.httprequest.url" />
<meta property="og:image" t-attf-content="#{request.httprequest.url_root+blog_post_cover_properties.get('background-image', 'none')[5:-1]}"/>
<meta property="og:description" t-att-content="blog_post.subtitle" />
<!-- Twitter sharing data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" t-attf-content="@#{res_company.name}" />
<meta name="twitter:title" t-att-content="blog_post.name" />
<meta name="twitter:description" t-att-content="blog_post.subtitle" />
<meta name="twitter:image" t-attf-content="#{request.httprequest.url_root+blog_post_cover_properties.get('background-image', 'none')[5:-1]}" />
</t>
</t> </t>
</template> </template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment