# Blogger posts have no snippet

**URL:** <https://meta.discourse.org/t/blogger-posts-have-no-snippet/89290>\
**Category:** Product Support\
**Created:** [6 ביוני,‏ 2018,‏ 8:35pm UTC](https://meta.discourse.org/t/blogger-posts-have-no-snippet/89290 "2018-06-06T20:35:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![joao\_pimentel\_ferrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joao_pimentel_ferrei/32/115365_2.png) [@joao\_pimentel\_ferrei](https://meta.discourse.org/u/joao_pimentel_ferrei)\
**Post date:** [9 בספטמבר,‏ 2018,‏ 5:37pm UTC](https://meta.discourse.org/t/blogger-posts-have-no-snippet/89290/4 "2018-09-09T17:37:10Z")

</div>

Thanks, finally I solved everything.

For blogger, I used this code, which I inserted right before the tag `</head>` in the blogger’s template

```plaintext
    <!-- OpenGraph starts-->
    <meta content='article' property='og:type'/>
    <meta expr:content='data:blog.title' property='og:site_name'/>
    
	<!-- Title and URL -->
    <meta expr:content='data:blog.pageName' property='og:title'/>
    <meta expr:content='data:blog.canonicalUrl.https' property='og:url'/>
		
    <!-- Image -->
	<b:if cond='data:blog.postImageThumbnailUrl'>
		<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
    <b:elseif cond='data:blog.postImageUrl'/>
    	<meta expr:content='data:blog.postImageUrl' property='og:image'/>    
	<b:else/>
    	<meta content='YOUR_LOGO_URL' property='og:image'/> 
    </b:if>

	<meta expr:content='&quot;pt_PT&quot;' property='og:locale'/>

    <!-- OpenGraph ends-->

```

The `og:description` is not fetched inside `<head>` since the variable `data:post` is not available in `<head>`. You must add in the template right after the line `<data:post.body/>` the following line:

```plaintext
<meta expr:content='data:post.snippet' property='og:description'/>

```

If you want a costumized snippet you may use this instead

```plaintext
<meta expr:content='snippet(data:post.body, { length: 150, links: false, linebreaks: false })' property='og:description'/>

```

now it seems to work smoothly, here’s a test 🙂 (please, it’s not spam, it’s _merely_ a test showing that it does work here in discourse)

> **[A origem e o anacronismo do medo](https://www.veraveritas.eu/2014/07/a-origem-e-o-anacronismo-do-medo.html)**
>
> A origem: a proteção na savana, na selva e na floresta! 
> A origem do medo remonta a princípios antropológicos de defesa pessoal e coletiva. O medo instintivo ou inato pode ser cientificamente explicado através da psicologia evolutiva . Já o medo...

---

_[View the full topic](https://meta.discourse.org/t/blogger-posts-have-no-snippet/89290)._
