Awesome
blaze-meta
A meteor package that makes it easy to manage meta-data
This package is currently unmaintained
- If you're looking for iron-router integration you should check out https://atmospherejs.com/lookback/seo
This package will probably be deprecated in near future, check out https://github.com/kadirahq/meteor-dochead
meteor add yasinuslu:blaze-meta
Meta.config({
options: {
title: "Default Title",
suffix: "Suffix"
}
});
Meta.setTitle("") => "Default Title"
Meta.setTitle("test") => "test | Suffix"
Meta.set("og:title", "Title");
Meta.set("og:description", "Description");
Meta.unset("og:title");
or
Meta.set({
name: 'property',
property: 'og:title',
content: 'Titleee'
});
or
Meta.set([
{
name: "name",
property: "apple-mobile-web-app-capable",
content: "yes"
},
{
name: "property",
property: "og:locale",
content: "en_GB"
}
]);
which results in:
<meta name="apple-mobile-web-app-capable" content="yes">
It will be updated on DOM automatically.