Skip to content

Commit

Permalink
generate feed in root
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Feb 3, 2024
1 parent 4a37702 commit 68308c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/generate-feed.sc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@ val items = os.list(path).filter(file =>
val channel = Element.Channel.create(blogTitle,feedUrl,"random unsorted notes",items)
println(Element.Rss(channel).asXmlText)
val rss = Element.Rss(channel).asXmlText
val targetDir = path/"_site"
if (!os.exists(targetDir)) {
os.makeDir(targetDir)
}
os.write.over(targetDir/"feed.xml",rss)
os.write.over(path/"feed.xml",rss)

0 comments on commit 68308c8

Please sign in to comment.