You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

208 lines
4.7 KiB

import { defineThemeConfig } from "vuepress-theme-hope";
import * as navbar from "./navbar";
import * as sidebar from "./sidebar";
export default defineThemeConfig({
hostname: "https://blog.xjtustei.nteren.net",
author: {
name: "XJTU-STEI",
url: "https://blog.xjtustei.nteren.net",
},
iconPrefix: "iconfont icon-",
logo: "/logo.svg",
repo: "https://git.xjtustei.nteren.net/XJTUSTEI/stei-blog",
docsDir: "/",
contributors: true,
editLink: true,
editLinkPattern: ":repo/_edit/:branch/:path",
docsBranch: "master",
blog: {
medias: {
// Baidu: "https://example.com",
// Bitbucket: "https://example.com",
// Dingding: "https://example.com",
// Discord: "https://example.com",
// Dribbble: "https://example.com",
Email: "xjtustei@outlook.com",
// Evernote: "https://example.com",
// Facebook: "https://example.com",
// Flipboard: "https://example.com",
Gitee: "https://gitee.com/xjtu_stei",
// 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,
headingDepth: 2,
footer: "Powered by VuePress, Served by Nginx",
displayFooter: true,
blog: {
description: "西安交通大学电信科协",
intro: "/intro.html",
},
// page meta
metaLocales: {
editLink: "在 Gitea 上编辑此页",
},
},
},
encrypt: {
config: {
},
},
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"],
},
},
search: {
locales: {
'/': {
placeholder: '搜索',
},
},
hotKeys: ['s', '/'],
maxSuggestions: 5,
isSearchable: (page) => page.path !== '/',
getExtraFields: (page) => [],
},
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",
// },
// ],
// },
],
},
},
},
});