mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 21:16:59 +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
|
@ -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" })
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue