Vulcan/packages/telescope-seo/lib/seo.js
Charlie DeTar 7521bb66b2 Refactor for getDescription and package style
Update package style to accord with the example of
``packages/telescope-blank``.  Add i18n.  Simplify description setting
into a single setting for both meta descriptions and og:description. Use
``getTitle`` and ``getDescription``.
2015-03-24 09:26:22 -06:00

39 lines
1.1 KiB
JavaScript

// Add SEO settings.
addToSettingsSchema.push({
propertyName: "seoDescription",
propertySchema: {
type: String,
optional: true,
label: "description",
autoform: {
group: "search engine optimization",
instructions: "Content for the meta description og:description tags for the front page and others that don't otherwise specify it.",
rows: 2
}
}
});
addToSettingsSchema.push({
propertyName: "seoOgImage",
propertySchema: {
type: String,
optional: true,
regEx: SimpleSchema.RegEx.Url,
label: "og:image",
autoform: {
group: "search engine optimization",
instructions: "URL to an image for the open graph image tag for all pages"
}
}
});
addToSettingsSchema.push({
propertyName: "seoGenerateSitemap",
propertySchema: {
type: Boolean,
defaultValue: false,
label: "Generate sitemap",
autoform: {
group: "search engine optimization",
instructions: "Automatically generate an XML sitemap for search engines, and append the sitemap URL to the output of robots.txt? NOTE: Requires restart to reflect change."
}
}
})