mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 05:27:00 +02:00
feat(blog): add LastUpdateAuthor & LastUpdateTime (#9912)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
7938803747
commit
c745021b01
40 changed files with 833 additions and 359 deletions
|
@ -195,7 +195,9 @@ export default async function createConfigAsync() {
|
|||
result = result.replaceAll('{/_', '{/*');
|
||||
result = result.replaceAll('_/}', '*/}');
|
||||
|
||||
if (isDev) {
|
||||
const showDevLink = false;
|
||||
|
||||
if (isDev && showDevLink) {
|
||||
const isPartial = path.basename(filePath).startsWith('_');
|
||||
if (!isPartial) {
|
||||
// "vscode://file/${projectPath}${filePath}:${line}:${column}",
|
||||
|
@ -441,6 +443,8 @@ export default async function createConfigAsync() {
|
|||
blog: {
|
||||
// routeBasePath: '/',
|
||||
path: 'blog',
|
||||
showLastUpdateAuthor: true,
|
||||
showLastUpdateTime: true,
|
||||
editUrl: ({locale, blogDirPath, blogPath}) => {
|
||||
if (locale !== defaultLocale) {
|
||||
return `https://crowdin.com/project/docusaurus-v2/${locale}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue