fix: title encoded uri components
This commit is contained in:
+1
-1
Submodule articles updated: b70c92046a...5822737a44
+2
-2
@@ -9,9 +9,9 @@ function parseMetadata(
|
||||
): ArticleMetadata {
|
||||
return {
|
||||
path: pathPrefix,
|
||||
title: (srcAttributes.title as string) ?? 'Untitled',
|
||||
title: decodeURIComponent((srcAttributes.title as string) ?? 'Untitled'),
|
||||
date: date,
|
||||
author: (srcAttributes.author as string) ?? '',
|
||||
author: decodeURIComponent((srcAttributes.author as string) ?? ''),
|
||||
thumbnail: srcAttributes.thumbnail
|
||||
? (srcAttributes.thumbnail as string).replaceAll('./', pathPrefix + '/')
|
||||
: pathPrefix + '/thumbnail.jpg',
|
||||
|
||||
Reference in New Issue
Block a user