vuepress-theme-aurora
Version:
A vuepress-based animation blog theme, simple, beautiful, multi-color, multiple custom functions, providing article poster sharing, talk, photo album, comment and other features 一个基于vuepress的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?
57 lines (56 loc) • 1.52 kB
JavaScript
;
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;