mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -21,7 +21,7 @@ const utils = require('../core/utils');
|
|||
|
||||
const renderMarkdown = require('../core/renderMarkdown.js');
|
||||
|
||||
module.exports = function(type) {
|
||||
module.exports = function (type) {
|
||||
console.log('feed.js triggered...');
|
||||
|
||||
type = type || 'rss';
|
||||
|
@ -31,7 +31,7 @@ module.exports = function(type) {
|
|||
const MetadataPublicBlog =
|
||||
process.env.NODE_ENV === 'development'
|
||||
? MetadataBlog
|
||||
: MetadataBlog.filter(item => !item.unlisted);
|
||||
: MetadataBlog.filter((item) => !item.unlisted);
|
||||
|
||||
const feed = new Feed({
|
||||
title: `${siteConfig.title} Blog`,
|
||||
|
@ -43,7 +43,7 @@ module.exports = function(type) {
|
|||
updated: new Date(MetadataPublicBlog[0].date),
|
||||
});
|
||||
|
||||
MetadataPublicBlog.forEach(post => {
|
||||
MetadataPublicBlog.forEach((post) => {
|
||||
const url = `${blogRootURL}/${post.path}`;
|
||||
const description = utils.blogPostHasTruncateMarker(post.content)
|
||||
? renderMarkdown(utils.extractBlogPostBeforeTruncate(post.content))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue