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的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?
23 lines (22 loc) • 775 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveGitPluginOptions = void 0;
/**
* Resolve options for @vuepress/plugin-git
*/
const resolveGitPluginOptions = (themePlugins, localeOptions) => {
if ((themePlugins === null || themePlugins === void 0 ? void 0 : themePlugins.git) === false) {
return false;
}
const enableUpdatedTime = localeOptions.lastUpdated !== false;
const enableContributors = localeOptions.contributors !== false;
if (!enableUpdatedTime && !enableContributors) {
return false;
}
return {
createdTime: false,
updatedTime: enableUpdatedTime,
contributors: enableContributors,
};
};
exports.resolveGitPluginOptions = resolveGitPluginOptions;