Menu icon Foundation
Open Graph Facebook F6 for sites Zurb template

It is possible to implement facebook open graphs (which are different for page), in foundation zurb template? How would it be?

open graphmetapages

It is possible to implement facebook open graphs (which are different for page), in foundation zurb template? How would it be?

This post has been closed. No new replies can be added.

Juan Oliver about 1 year ago

Solved.

In the /data/file.yml

name_page:
    -
      "property": "og:url"
      "content": "Something"
    -
      "property": "og:type"
      "content": "Something"
    -
      "property": "og:title"
      "content": "Something"
    -
      "property": "og:description"
      "content": "Something"
    -
      "property": "og:image"
      "content": "Something"

In the /layouts/index.html

<!--Meta Open Graph-->
    {{#ifpage "5_metodos_de_recopilacion_de_informacion"}}
    {{#each meta.metodos}}
    <meta property="{{property}}" content="{{content}}">
    {{/each}}
    {{/ifpage}}