Skip to content

Instantly share code, notes, and snippets.

@callmephilip
Last active May 20, 2016 22:29
Show Gist options
  • Select an option

  • Save callmephilip/dde598a163f6763d59cf to your computer and use it in GitHub Desktop.

Select an option

Save callmephilip/dde598a163f6763d59cf to your computer and use it in GitHub Desktop.
Add meta tags in Meteor
Router.route('/', {
name: 'home',
onAfterAction: function () {
DocHead.setTitle('Welcome home');
DocHead.addMeta({
name: "description",
content: "Site description"
});
DocHead.addMeta({
property: "og:title",
content: "Facebook title"
});
DocHead.addMeta({
property: "og:description",
content: "Facebook description"
});
DocHead.addMeta({
property: "og:image",
content: "http://placehold.it/1200x630"
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment