UNPKG

vuepress-cqy

Version:

This is an anime blog theme based on vuepress, the theme is simple, colorful, versatile, and supports customization, providing multiple components to set the theme 这是一个基于vuepress的动漫类型主题,简洁,界面漂亮,多色彩,多自定义,多功能,海报分享,相册等等,满足你搭建博客的一切需要

57 lines (56 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assignDefaultLocaleOptions = void 0; const defaultLocaleOptions = { // navbar navbar: [], logo: null, darkMode: true, repo: null, selectLanguageText: 'Languages', selectLanguageAriaLabel: 'Select language', // sidebar sidebar: 'auto', sidebarDepth: 2, // page meta editLink: true, editLinkText: 'Edit this page', lastUpdated: true, lastUpdatedText: 'Last Updated', contributors: true, contributorsText: 'Contributors', // 404 page messages notFound: [ `There's nothing here.`, `How did we get here?`, `That's a Four-Oh-Four.`, `Looks like we've got some broken links.`, ], backToHome: 'Take me home', // `<OutboundLink>` sr-only openInNewWindow: 'open in new window', }; const defaultLocaleData = { // navbar selectLanguageName: 'English', }; /** * Assign default options to `themeConfig` */ const assignDefaultLocaleOptions = (localeOptions) => { if (!localeOptions.locales) { localeOptions.locales = {}; } if (!localeOptions.locales['/']) { localeOptions.locales['/'] = {}; } Object.assign(localeOptions, { ...defaultLocaleOptions, ...localeOptions, }); Object.assign(localeOptions.locales['/'], { ...defaultLocaleData, ...localeOptions.locales['/'], }); }; exports.assignDefaultLocaleOptions = assignDefaultLocaleOptions;