Skip to content

Commit 963e412

Browse files
committed
fixed post url
1 parent cbb0f96 commit 963e412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate-feed.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ val items = os.list(path).filter(file =>
5656
val mdContent = os.read.lines(file)
5757
val title = extractTitle(mdContent).getOrElse(file.toString)
5858
val pubDate = ZonedDateTime.of(ctime, LocalTime.MIN, ZoneId.systemDefault)
59-
Element.Item.create(title, s"${baseUrl}/file", "at {}", author, pubDate=Some(pubDate))
59+
Element.Item.create(title, s"${baseUrl}/${file.baseName}.${file.ext}", "at {}", author, pubDate=Some(pubDate))
6060
}
6161

6262
val channel = Element.Channel.create(blogTitle,feedUrl,"random unsorted notes",items)

0 commit comments

Comments
 (0)