import { defineThemeConfig } from "vuepress-theme-hope"; import * as navbar from "./navbar"; import * as sidebar from "./sidebar"; export default defineThemeConfig({ hostname: "http://blog.xjtustei.nteren.net", author: { name: "XJTU-STEI", url: "http://blog.xjtustei.nteren.net", }, iconPrefix: "iconfont icon-", logo: "/logo.svg", repo: "http://git.xjtustei.nteren.net/XJTUSTEI/stei-blog", docsDir: "demo/src", blog: { medias: { Baidu: "https://example.com", Bitbucket: "https://example.com", Dingding: "https://example.com", Discord: "https://example.com", Dribbble: "https://example.com", Email: "https://example.com", Evernote: "https://example.com", Facebook: "https://example.com", Flipboard: "https://example.com", Gitee: "https://example.com", GitHub: "https://example.com", Gitlab: "https://example.com", Gmail: "https://example.com", Instagram: "https://example.com", Lines: "https://example.com", Linkedin: "https://example.com", Pinterest: "https://example.com", Pocket: "https://example.com", QQ: "https://example.com", Qzone: "https://example.com", Reddit: "https://example.com", Rss: "https://example.com", Steam: "https://example.com", Twitter: "https://example.com", Wechat: "https://example.com", Weibo: "https://example.com", Whatsapp: "https://example.com", Youtube: "https://example.com", Zhihu: "https://example.com", }, }, locales: { // "/": { // // navbar // navbar: navbar.en, // // sidebar // sidebar: sidebar.en, // footer: "Default footer", // displayFooter: true, // blog: { // description: "A FrontEnd programmer", // intro: "/intro.html", // }, // metaLocales: { // editLink: "Edit this page on GitHub", // }, // }, /** * Chinese locale config */ "/": { // navbar navbar: navbar.zh, // sidebar sidebar: sidebar.zh, footer: "Copyright © 2022 XJTU-STEI", displayFooter: true, blog: { description: "西安交通大学电信科协", intro: "/intro.html", }, // page meta metaLocales: { editLink: "在 GitHub 上编辑此页", }, }, }, encrypt: { config: { "/guide/encrypt.html": ["1234"], }, }, plugins: { blog: { autoExcerpt: true, }, // comment: { // type: "waline", // serverURL: "https://vuepress-theme-hope-comment.vercel.app", // }, mdEnhance: { enableAll: true, presentation: { plugins: ["highlight", "math", "search", "notes", "zoom"], }, }, pwa: { favicon: "/favicon.ico", cachePic: true, apple: { icon: "/assets/icon/apple-icon-152.png", statusBarColor: "black", }, msTile: { image: "/assets/icon/ms-icon-144.png", color: "#ffffff", }, manifest: { icons: [ { src: "/assets/icon/chrome-mask-512.png", sizes: "512x512", purpose: "maskable", type: "image/png", }, { src: "/assets/icon/chrome-mask-192.png", sizes: "192x192", purpose: "maskable", type: "image/png", }, { src: "/assets/icon/chrome-512.png", sizes: "512x512", type: "image/png", }, { src: "/assets/icon/chrome-192.png", sizes: "192x192", type: "image/png", }, ], shortcuts: [ // { // name: "Guide", // short_name: "Guide", // url: "/guide/", // icons: [ // { // src: "/assets/icon/guide-maskable.png", // sizes: "192x192", // purpose: "maskable", // type: "image/png", // }, // { // src: "/assets/icon/guide-monochrome.png", // sizes: "192x192", // purpose: "monochrome", // type: "image/png", // }, // ], // }, ], }, }, }, });