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 {
|
): ArticleMetadata {
|
||||||
return {
|
return {
|
||||||
path: pathPrefix,
|
path: pathPrefix,
|
||||||
title: (srcAttributes.title as string) ?? 'Untitled',
|
title: decodeURIComponent((srcAttributes.title as string) ?? 'Untitled'),
|
||||||
date: date,
|
date: date,
|
||||||
author: (srcAttributes.author as string) ?? '',
|
author: decodeURIComponent((srcAttributes.author as string) ?? ''),
|
||||||
thumbnail: srcAttributes.thumbnail
|
thumbnail: srcAttributes.thumbnail
|
||||||
? (srcAttributes.thumbnail as string).replaceAll('./', pathPrefix + '/')
|
? (srcAttributes.thumbnail as string).replaceAll('./', pathPrefix + '/')
|
||||||
: pathPrefix + '/thumbnail.jpg',
|
: pathPrefix + '/thumbnail.jpg',
|
||||||
|
|||||||
Reference in New Issue
Block a user