text: const { config } = require("vuepress-theme-hope");
  const navBarConfig = require("./config/navbar");
  const sideBarConfig = require("./config/sideBar");
  
  module.exports = config({
    title: "我是 Mr.Hope",
    description: "Where there is light, there is hope.",
  
    head: [
      // 百度站点验证
      ["meta", { name: "baidu-site-verification", content: "nGf5yi0Gec" }],
      ["meta", { name: "baidu-site-verification", content: "4H7tszevS8" }],
  
      [
        "link",
        {
          rel: "mask-icon",
          href: "/assets/safari-pinned-tab.svg",
          color: "#5c92d1",
        },
      ],
    ],
  
    shouldPrefetch: (filename) => !filename.includes("page-"),
  
    dest: "dist",
  
    locales: {
      "/en/": {
        title: "My name is Mr.Hope",
        description: "Mr.Hope personal blog",
      },
    },
  
    themeConfig: {
      baseLang: "zh-CN",
      logo: "/logo.png",
      nav: navBarConfig.zh,
      sidebar: sideBarConfig.zh,
      author: "Mr.Hope",
  
      locales: {
        /** 英文设置 */
        "/en/": {
          nav: navBarConfig.en,
          sidebar: sideBarConfig.en,
        },
      },
  
      blog: {
        intro: "/about/index.html",
        sidebarDisplay: "mobile",
        links: {
          QQ: "http://wpa.qq.com/msgrd?v=3&uin=1178522294&site=qq&menu=yes",
          Qzone: "https://1178522294.qzone.qq.com/",
          Gmail: "mailto:zhangbowang1998@gmail.com",
          Zhihu: "https://www.zhihu.com/people/mister-hope",
          Steam: "https://steamcommunity.com/id/Mr-Hope/",
          Weibo: "https://weibo.com/misterhope",
        },
      },
  
      copyright: {
        status: "global",
      },
  
      mdEnhance: {
        enableAll: true,
      },
  
      comment: {
        type: "valine",
        appId: "yV3IQ4Rz02liuTTm51spbQHV-gzGzoHsz",
        appKey: "yr29K98irAzyUzY1ppfMbr5L",
      },
  
      footer: {
        copyright: "Copyright © 2019-present Mr.Hope",
        display: true,
      },
  
      hostname: "https://mrhope.site",
  
      algolia: {
        apiKey: "064a2d15d1a0f7b69df3ef1458d1a510",
        indexName: "mrhope",
      },
  
      lastUpdate: {
        timezone: "Asia/Shanghai",
      },
  
      pwa: {
        favicon: "/favicon.ico",
        themeColor: "#5c92d1",
        apple: {
          icon: "/assets/icon/apple-icon-152.png",
          statusBarColor: "black",
        },
        msTile: {
          image: "/assets/icon/ms-icon-144.png",
          color: "#ffffff",
        },
        manifest: {
          name: "Mr.Hope 的个人博客",
          short_name: "Mr.Hope Blog",
          description: "Mr.Hope 的个人博客",
          theme_color: "#5c92d1",
          icons: [
            {
              src: "/assets/icon/chrome-192.png",
              sizes: "192x192",
              type: "image/png",
            },
            {
              src: "/assets/icon/chrome-512.png",
              sizes: "512x512",
              type: "image/png",
            },
            {
              src: "/assets/icon/chrome-mask-192.png",
              sizes: "192x192",
              purpose: "maskable",
              type: "image/png",
            },
            {
              src: "/assets/icon/chrome-mask-512.png",
              sizes: "512x512",
              purpose: "maskable",
              type: "image/png",
            },
          ],
          shortcuts: [
            {
              name: "分类",
              short_name: "分类",
              icons: [
                {
                  src: "/assets/icon/category-maskable.png",
                  sizes: "192x192",
                  purpose: "maskable",
                  type: "image/png",
                },
                {
                  src: "/assets/icon/category-monochrome.png",
                  sizes: "192x192",
                  purpose: "monochrome",
                  type: "image/png",
                },
              ],
              url: "/category/",
              description: "文章分类分组",
            },
            {
              name: "标签",
              short_name: "标签",
              icons: [
                {
                  src: "/assets/icon/tag-maskable.png",
                  sizes: "192x192",
                  purpose: "maskable",
                  type: "image/png",
                },
                {
                  src: "/assets/icon/tag-monochrome.png",
                  sizes: "192x192",
                  purpose: "monochrome",
                  type: "image/png",
                },
              ],
              url: "/tag/",
              description: "文章标签分组",
            },
            {
              name: "时间线",
              short_name: "时间线",
              icons: [
                {
                  src: "/assets/icon/timeline-maskable.png",
                  sizes: "192x192",
                  purpose: "maskable",
                  type: "image/png",
                },
                {
                  src: "/assets/icon/timeline-monochrome.png",
                  sizes: "192x192",
                  purpose: "monochrome",
                  type: "image/png",
                },
              ],
              url: "/timeline/",
              description: "时间线文章列表",
            },
            {
              name: "个人介绍",
              short_name: "个人介绍",
              icons: [
                {
                  src: "/assets/icon/about-maskable.png",
                  sizes: "192x192",
                  purpose: "maskable",
                  type: "image/png",
                },
                {
                  src: "/assets/icon/about-monochrome.png",
                  sizes: "192x192",
                  purpose: "monochrome",
                  type: "image/png",
                },
              ],
              url: "/about/",
              description: "个人介绍",
            },
          ],
        },
        cacheHTML: false,
        maxSize: 2048,
      },
  
      repo: "https://github.com/Mister-Hope/blog",
      repoDisplay: false,
      repoLabel: "Github",
      docsDir: "src",
    },
  });
  