Skip to content

Instantly share code, notes, and snippets.

View eljuliopo's full-sized avatar
🏴
world's pirates, unite!

juliopo eljuliopo

🏴
world's pirates, unite!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am eljuliopo on github.
  • I am eljuliopo (https://keybase.io/eljuliopo) on keybase.
  • I have a public key ASDI9Aaq3e433mTdX5tetvUGVlq4ZuweJnFwDCF3LOS0ago

To claim this, I am signing this object:

@eljuliopo
eljuliopo / ghost-facebook-opengraph
Created July 6, 2017 17:16
Dynamic Facebook Open Graph Data for Ghost Themes
{{! Facebook OpenGraph }}
<meta property="og:site_name" content="{{@blog.title}}">
{{#if post}}
{{#post}}
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{date format='YYYY-MM-DD, hh:mm:ss'}}">
{{#if author}}<meta property="article:author" content="{{@blog.url}}{{#author}}{{url}}{{/author}}">{{/if}}
{{#if tags}}{{#foreach tags}}<meta property="article:tag" content="{{name}}">{{/foreach}}{{/if}}
<meta property="og:url" content="{{url absolute='true'}}" />