0.1.1 • Published 10 years ago
@nymdev/clay-meta-site v0.1.1
clay-meta-site
twitter:site, fb:app_id, og:site_name, and og:type tags!
Install
npm install --save @nymdev/clay-meta-siteAdds site-specific tags to the head:
twitter:siteog:site_nameog:typeapple-mobile-web-app-title(using site name)format-detection(to kill telephone links on mobile browsers)icon(square site icon)mask-iconicon sizes="196x196"article:publisher(for facebook)fb:app_id
Usage
Once you install it, it will be automatically recognized by amphora. It has the following properties:
twittershould be a twitter handle (without an @-sign)facebookshould be your site's facebook namefacebookIDshould be a facebook app idsiteNameshould be a human-readable site name, which will appear in Google search results and Facebook postsogTypeshould identify the type of page for sharing, per the Open Graph protocoldetectTelis "yes" or "no" to detect telephone links in mobile browsersicon,maskIcon, and196pxIconshould be links to your iconsmaskColorshould be a hex color value, e.g.#FF5656
A Note On Head Components
This component lives in the head of the page, and isn't editable directly. Use the componentRef behavior to affect it when you edit other components on the page.