{"size": 322, "ext": "js", "max_stars_repo_path": "src/utils/getPageTitle.js", "max_stars_repo_name": "SuperficialL/blog-web", "max_stars_repo_stars_event_min_datetime": "2019-11-14T13:08:50.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-31T10:56:13.000Z", "max_issues_repo_path": "src/utils/getPageTitle.js", "max_issues_repo_name": "SuperficialL/blog-web", "max_issues_repo_issues_event_min_datetime": "2020-04-26T10:42:32.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T09:09:44.000Z", "max_forks_repo_path": "src/utils/getPageTitle.js", "max_forks_repo_name": "SuperficialL/blog-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 21.4666666667, "max_line_length": 60, "alphanum_fraction": 0.6397515528}
/*
 * @Author: Superficial
 * @Date: 2020-01-01 14:34:10
 * @LastEditTime: 2020-02-27 13:25:44
 * @Description: 获取页面标题
 */

export default function getPageTitle(pageTitle, pageSlug) {
  if (pageTitle || pageSlug) {
    return `${ pageTitle } | ${ pageSlug }- zhangwurui.net`;
  } else {
    return 'zhangwurui.net';
  }
}
