From 6cd8bd89b2961df2d38185171b38859c93c3ca6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Gali=C4=87?= Date: Sun, 21 Jul 2019 15:32:07 +0200 Subject: [PATCH] fix syntax: we're now down to type errors --- templates/blogs/details.rs.html | 4 ++-- templates/partials/post_card.rs.html | 5 ++--- templates/posts/details.rs.html | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/blogs/details.rs.html b/templates/blogs/details.rs.html index 571b1139..51a2a7f2 100644 --- a/templates/blogs/details.rs.html +++ b/templates/blogs/details.rs.html @@ -24,7 +24,7 @@ }, { - @blog.title + @blog.title }, { - +

@i18n!(ctx.1, "There's one author on this blog: ", "There are {0} authors on this blog: "; authors.len()) diff --git a/templates/partials/post_card.rs.html b/templates/partials/post_card.rs.html index e9e9f19a..296270b3 100644 --- a/templates/partials/post_card.rs.html +++ b/templates/partials/post_card.rs.html @@ -9,7 +9,7 @@

}

- + @article.title

@@ -25,10 +25,9 @@ @if article.published { ⋅ @article.creation_date.format("%B %e, %Y") } - ⋅ @article.get_blog(ctx.0).unwrap().title + ⋅ @article.get_blog(ctx.0).unwrap().title @if !article.published { ⋅ @i18n!(ctx.1, "Draft") } - diff --git a/templates/posts/details.rs.html b/templates/posts/details.rs.html index f8a0803f..f88d3f73 100644 --- a/templates/posts/details.rs.html +++ b/templates/posts/details.rs.html @@ -17,10 +17,10 @@ @if article.cover_id.is_some() { } - + }, { - @blog.title + @blog.title }, {
@for tag in tags { @if !tag.is_hashtag { -
  • @tag.tag
  • +
  • @tag.tag
  • } else { }