disabled redundant korean project parsing
This commit is contained in:
parent
ea348aa531
commit
38f6e755f0
1 changed files with 31 additions and 30 deletions
|
@ -11,12 +11,12 @@ import { DataToPass } from "."
|
|||
export default function parsePortfolio(data: DataToPass): void {
|
||||
const { urlPath, markdownRaw, markdownData } = data
|
||||
|
||||
const lastPath = urlPath.slice(urlPath.lastIndexOf("/") + 1)
|
||||
|
||||
// check if the file is a portfolio overview or a project
|
||||
if (lastPath == "0") {
|
||||
// explanation: file `0.md` is a special file (i.e. not a regular project file)
|
||||
if (urlPath.slice(urlPath.lastIndexOf("/") + 1) == "0") {
|
||||
portfolioData.overview = markdownData.content
|
||||
} else {
|
||||
if (!urlPath.endsWith(".kr")) {
|
||||
if (markdownData.badges) {
|
||||
;(markdownData.badges as string[]).forEach((slug) => {
|
||||
// todo: handle cases when icon is not on simple-icons
|
||||
|
@ -49,6 +49,7 @@ export default function parsePortfolio(data: DataToPass): void {
|
|||
}
|
||||
|
||||
portfolioData.projects[urlPath] = project
|
||||
}
|
||||
|
||||
writeToFile(
|
||||
`${contentDirectoryPath}${urlPath}.json`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue