update meta titles on pages built from markdown

This commit is contained in:
Eric 2022-09-14 16:29:44 -05:00
parent 0a937b1a43
commit 8ac41e48a8
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ module.exports = {
// Note: Leaving title and description as `undefined` in our view means we'll default to the generic title and description set in layout.ejs.
let pageTitleForMeta;
if(thisPage.meta.articleTitle) {
pageTitleForMeta = thisPage.meta.articleTitle + ' | Fleet for osquery';
pageTitleForMeta = thisPage.meta.articleTitle + ' | Fleet Device Management';
}//fi
let pageDescriptionForMeta;
if(thisPage.meta.articleTitle && thisPage.meta.authorFullName) {

View file

@ -69,7 +69,7 @@ module.exports = {
compiledPagePartialsAppPath: sails.config.builtStaticContent.compiledPagePartialsAppPath,
pageTitleForMeta: (
thisPage.title !== 'Readme.md' ? thisPage.title + ' | Fleet documentation'// « custom meta title for this page, if provided in markdown
: 'Documentation | Fleet for osquery' // « otherwise we're on the landing page for this section of the site, so we'll follow the title format of other top-level pages
: 'Documentation | Fleet Device Management' // « otherwise we're on the landing page for this section of the site, so we'll follow the title format of other top-level pages
),
pageDescriptionForMeta: (
thisPage.meta.description ? thisPage.meta.description // « custom meta description for this page, if provided in markdown

View file

@ -63,7 +63,7 @@ module.exports = {
compiledPagePartialsAppPath: sails.config.builtStaticContent.compiledPagePartialsAppPath,
pageTitleForMeta: (
thisPage.title !== 'Readme.md' ? thisPage.title + ' | Fleet handbook'// « custom meta title for this page, if provided in markdown
: 'Handbook | Fleet for osquery' // « otherwise we're on the landing page for this section of the site, so we'll follow the title format of other top-level pages
: 'Handbook | Fleet Device Management' // « otherwise we're on the landing page for this section of the site, so we'll follow the title format of other top-level pages
),
pageDescriptionForMeta: (
thisPage.meta.description ? thisPage.meta.description // « custom meta description for this page, if provided in markdown