Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
songkg7 committed Jun 29, 2024
1 parent 4026905 commit 6c41935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/jekyll/FilenameConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export const convertFileName = (filename: string): string =>
.replace(/[^a-zA-Z0-9-\uAC00-\uD7A3]/g, '');

export const removeTempPrefix = (filename: string): string =>
filename.replace('o2-temp.', '');
filename.replace('o2-temp', '');
6 changes: 3 additions & 3 deletions src/jekyll/chirpy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export async function convertToChirpy(plugin: O2Plugin) {
try {
const markdownFiles = await copyMarkdownFile(plugin);
for (const file of markdownFiles) {

const fileName = convertFileName(file.name);
const frontMatterConverter = new FrontMatterConverter(
file.name,
fileName,
settings.jekyllRelativeResourcePath,
settings.isEnableBanner,
settings.isEnableUpdateFrontmatterTimeOnEdit,
);
const resourceLinkConverter = new ResourceLinkConverter(
file.name,
fileName,
settings.resourcePath(),
vaultAbsolutePath(plugin),
settings.attachmentsFolder,
Expand Down

0 comments on commit 6c41935

Please sign in to comment.