A meteor package that makes it easy to manage meta-data
JavaScript HTML CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
tests
.gitignore
.versions
LICENSE
README.md
package.js
smart.json
versions.json

README.md

blaze-meta

Gitter

A meteor package that makes it easy to manage meta-data

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.