mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
update meta titles on pages built from markdown
This commit is contained in:
parent
0a937b1a43
commit
8ac41e48a8
3 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue