Skip to content

Commit

Permalink
fixed post url
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Feb 3, 2024
1 parent cbb0f96 commit 963e412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-feed.sc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ val items = os.list(path).filter(file =>
val mdContent = os.read.lines(file)
val title = extractTitle(mdContent).getOrElse(file.toString)
val pubDate = ZonedDateTime.of(ctime, LocalTime.MIN, ZoneId.systemDefault)
Element.Item.create(title, s"${baseUrl}/file", "at {}", author, pubDate=Some(pubDate))
Element.Item.create(title, s"${baseUrl}/${file.baseName}.${file.ext}", "at {}", author, pubDate=Some(pubDate))
}

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

0 comments on commit 963e412

Please sign in to comment.