src/Page.js
function Page(pageConfig) {
  this.asset = pageConfig.asset;
  this.baseUrl = pageConfig.baseUrl;
  this.baseUrlMap = pageConfig.baseUrlMap;
  this.content = pageConfig.content || '';
  this.faviconUrl = pageConfig.faviconUrl;
  this.frontmatterOverride = pageConfig.frontmatter || {};
  this.layout = pageConfig.layout;
  this.layoutsAssetPath = pageConfig.layoutsAssetPath;
  this.rootPath = pageConfig.rootPath;
  this.enableSearch = pageConfig.enableSearch;
  this.globalOverride = pageConfig.globalOverride;
  this.plugins = pageConfig.plugins;
  this.pluginsContext = pageConfig.pluginsContext;
  this.searchable = pageConfig.searchable;
  this.src = pageConfig.src;
  this.template = pageConfig.pageTemplate;
  this.title = pageConfig.title || '';
  this.titlePrefix = pageConfig.titlePrefix;
  this.userDefinedVariablesMap = pageConfig.userDefinedVariablesMap;

  // the source file for rendering this page
  this.sourcePath = pageConfig.sourcePath;
  // the temp path for writing intermediate result
  this.tempPath = pageConfig.tempPath;
  // the output path of this page
  this.resultPath = pageConfig.resultPath;

  this.frontMatter = {};
  this.headFileBottomContent = '';
  this.headFileTopContent = '';
  this.headings = {};
  this.headingIndexingLevel = pageConfig.headingIndexingLevel;
  this.includedFiles = {};
  this.keywords = {};
  this.navigableHeadings = {};
  this.pageSectionsHtml = {};

  // Flag to indicate whether this page has a site nav
  this.hasSiteNav = false;
}
function Page(pageConfig) {
  this.asset = pageConfig.asset;
  this.baseUrl = pageConfig.baseUrl;
  this.baseUrlMap = pageConfig.baseUrlMap;
  this.content = pageConfig.content || '';
  this.faviconUrl = pageConfig.faviconUrl;
  this.frontmatterOverride = pageConfig.frontmatter || {};
  this.layout = pageConfig.layout;
  this.layoutsAssetPath = pageConfig.layoutsAssetPath;
  this.rootPath = pageConfig.rootPath;
  this.enableSearch = pageConfig.enableSearch;
  this.globalOverride = pageConfig.globalOverride;
  this.plugins = pageConfig.plugins;
  this.pluginsContext = pageConfig.pluginsContext;
  this.searchable = pageConfig.searchable;
  this.src = pageConfig.src;
  this.template = pageConfig.pageTemplate;
  this.title = pageConfig.title || '';
  this.titlePrefix = pageConfig.titlePrefix;
  this.userDefinedVariablesMap = pageConfig.userDefinedVariablesMap;

  // the source file for rendering this page
  this.sourcePath = pageConfig.sourcePath;
  // the temp path for writing intermediate result
  this.tempPath = pageConfig.tempPath;
  // the output path of this page
  this.resultPath = pageConfig.resultPath;

  this.frontMatter = {};
  this.headFileBottomContent = '';
  this.headFileTopContent = '';
  this.headings = {};
  this.headingIndexingLevel = pageConfig.headingIndexingLevel;
  this.includedFiles = {};
  this.keywords = {};
  this.navigableHeadings = {};
  this.pageSectionsHtml = {};

  // Flag to indicate whether this page has a site nav
  this.hasSiteNav = false;
}
function Page ( pageConfig ) { this . asset = pageConfig . asset ; this . baseUrl = pageConfig . baseUrl ; this . baseUrlMap = pageConfig . baseUrlMap ; this . content = pageConfig . content || '' ; this . faviconUrl = pageConfig . faviconUrl ; this . frontmatterOverride = pageConfig . frontmatter || { } ; this . layout = pageConfig . layout ; this . layoutsAssetPath = pageConfig . layoutsAssetPath ; this . rootPath = pageConfig . rootPath ; this . enableSearch = pageConfig . enableSearch ; this . globalOverride = pageConfig . globalOverride ; this . plugins = pageConfig . plugins ; this . pluginsContext = pageConfig . pluginsContext ; this . searchable = pageConfig . searchable ; this . src = pageConfig . src ; this . template = pageConfig . pageTemplate ; this . title = pageConfig . title || '' ; this . titlePrefix = pageConfig . titlePrefix ; this . userDefinedVariablesMap = pageConfig . userDefinedVariablesMap ; // the source file for rendering this page this . sourcePath = pageConfig . sourcePath ; // the temp path for writing intermediate result this . tempPath = pageConfig . tempPath ; // the output path of this page this . resultPath = pageConfig . resultPath ; this . frontMatter = { } ; this . headFileBottomContent = '' ; this . headFileTopContent = '' ; this . headings = { } ; this . headingIndexingLevel = pageConfig . headingIndexingLevel ; this . includedFiles = { } ; this . keywords = { } ; this . navigableHeadings = { } ; this . pageSectionsHtml = { } ; // Flag to indicate whether this page has a site nav this . hasSiteNav = false ; }
Don't escape HTML entities
Don t escape HTML entities