roll

Rolled my own static website builder 💻

Commit
4c30fb6e108b2b8e0fe406749bb9880a45a83ad1
Parent
ac7424c917462a66ef6e7743cb5553da8693258d
Author
Pablo <pablo-pie@riseup.net>
Date

Typos in html::render_rss

Fixed typos in html::render_rss to pass https://validator.w3.org/feed/

Diffstats

1 files changed, 1 insertions, 2 deletions

Status Name Changes Insertions Deletions
Modified src/html.rs 2 files changed 1 2
diff --git a/src/html.rs b/src/html.rs
@@ -625,7 +625,6 @@ pub fn render_rss(
 
   writeln!(w, "<title>{FEED_TITLE}</title>")?;
   writeln!(w, "<description>{FEED_DESCRIPTION}</description>")?;
-  writeln!(w, "<author>{AUTHOR}</author>")?;
   writeln!(w, "<language>en-us</language>")?;
   writeln!(w, "<copyright>Copyright {}, {AUTHOR}</copyright>", today.year)?;
   writeln!(w, "<link>{HOST_URL}</link>")?;
@@ -636,7 +635,7 @@ pub fn render_rss(
   for (post_name, PostInfo { title, excerpt, date, }) in posts {
     writeln!(w, "<item>")?;
     writeln!(w, "<title>{}</title>", Escaped(title))?;
-    writeln!(w, "<descrition>{}</description>", Escaped(excerpt))?;
+    writeln!(w, "<description>{}</description>", Escaped(excerpt))?;
     writeln!(w, "<author>{AUTHOR}</author>")?;
     writeln!(w, "<link>{HOST_URL}/{POSTS_SUBDIR}/{post_name}.html</link>")?;
     writeln!(w, "<pubDate>{}</pubDate>", RssDateTime(*date))?;