GitHub

{{socialMetaTags}} helper

Helper for creating Open Graph and Twitter Cars meta tags.

Syntax:

{{socialMetaTags}}

Example output:

<meta property="og:title" content="Post title" />
<meta property="og:image" content="https://example.com/media/posts/1/img.jpg"/>
<meta property="og:site_name" content="Site name" />
<meta property="og:description" content="Lorem ipsum dolor" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@username" />
<meta name="twitter:title" content="Post title" />
<meta name="twitter:description" content="Lorem ipsum dolor" />
<meta name="twitter:image" content="https://example.com/media/posts/1/img.jpg" />

Subscribe

Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at contact@tidycustoms.net. By clicking below, you agree that we may process your information in accordance with our Privacy Policy.