mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
feat: make blog posts unlisted only in production
This commit is contained in:
parent
ffbc7a37f8
commit
49cfdeb42b
11 changed files with 62 additions and 561 deletions
|
@ -28,7 +28,10 @@ module.exports = function(type) {
|
|||
|
||||
readMetadata.generateMetadataBlog(siteConfig);
|
||||
const MetadataBlog = require('../core/MetadataBlog.js');
|
||||
const MetadataPublicBlog = MetadataBlog.filter(item => !item.draft);
|
||||
const MetadataPublicBlog =
|
||||
process.env.NODE_ENV === 'development'
|
||||
? MetadataBlog
|
||||
: MetadataBlog.filter(item => !item.unlisted);
|
||||
|
||||
const feed = new Feed({
|
||||
title: `${siteConfig.title} Blog`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue