mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 11:36:53 +02:00
Allows periods in blog file names -- will allow for version numbers, etc (#163)
* Allows periods in blog file names -- will allow for version numbers, etc * Removed debug lines...
This commit is contained in:
parent
a6bad7f92d
commit
55b0f33f2a
3 changed files with 10 additions and 4 deletions
|
@ -250,8 +250,7 @@ function execute() {
|
|||
.replace("-", "/")
|
||||
.replace("-", "/")
|
||||
.replace("-", "/")
|
||||
.replace(/\./g, "-")
|
||||
.replace(/\-md$/, ".html");
|
||||
.replace(/\.md$/, ".html");
|
||||
const result = readMetadata.extractMetadata(
|
||||
fs.readFileSync(file, { encoding: "utf8" })
|
||||
);
|
||||
|
|
|
@ -340,8 +340,7 @@ function generateMetadataBlog() {
|
|||
.replace("-", "/")
|
||||
.replace("-", "/")
|
||||
.replace("-", "/")
|
||||
.replace(/\./g, "-")
|
||||
.replace(/\-md$/, ".html");
|
||||
.replace(/\.md$/, ".html");
|
||||
const result = extractMetadata(
|
||||
fs.readFileSync(file, { encoding: "utf8" })
|
||||
);
|
||||
|
|
8
website/blog/2017-10-24-new-version-1.0.0.md
Normal file
8
website/blog/2017-10-24-new-version-1.0.0.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: New Version 1.0.0
|
||||
author: Eric Nakagawa
|
||||
authorURL: http://twitter.com/ericnakagawa
|
||||
authorFBID: 661277173
|
||||
---
|
||||
|
||||
This blog post will test file name parsing issues when periods are present.
|
Loading…
Add table
Add a link
Reference in a new issue