Skip to content

Commit

Permalink
fix(JekyllSettings.ts): adding convertFileName to the title variable (#…
Browse files Browse the repository at this point in the history
…417)

The error in not converting the file name occurs because the change is being made only in the front matter, which causes the inconsistency.
  • Loading branch information
pedrobiqua authored Jan 13, 2025
1 parent e24e2cd commit 7c0caa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jekyll/settings/JekyllSettings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { O2PluginSettings } from '../../settings';
import { convertFileName } from '../../FilenameConverter';

export default class JekyllSettings implements O2PluginSettings {
private _jekyllPath: string;
Expand All @@ -9,6 +10,7 @@ export default class JekyllSettings implements O2PluginSettings {
day: string,
title: string,
): string {
title = convertFileName(title);
return `${year}-${month}-${day}-${title}.md`;
}

Expand Down

0 comments on commit 7c0caa5

Please sign in to comment.