diff --git a/src/post.rs b/src/post.rs index 5df1d60..92bd862 100644 --- a/src/post.rs +++ b/src/post.rs @@ -133,7 +133,7 @@ async fn parse_post(json: serde_json::Value) -> Result { } else { "white".to_string() }, - ) + ), }; Ok(post) diff --git a/src/subreddit.rs b/src/subreddit.rs index 201c3fe..013379a 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -33,7 +33,9 @@ pub async fn render(sub_name: String, sort: Option, ends: (Option{% block title %}Libreddit{% endblock %} + - {% endblock %} diff --git a/templates/post.html b/templates/post.html index 1173ba3..6ad23b6 100644 --- a/templates/post.html +++ b/templates/post.html @@ -13,7 +13,7 @@
- u/{{ item.author }} + u/{{ item.author }} {% if item.flair.0 != "" %} {{ item.flair.0 }} {% endif %}