From e53574970cb98da91b177124b4886084984dee45 Mon Sep 17 00:00:00 2001 From: Violet White Date: Mon, 16 Dec 2019 16:55:02 -0500 Subject: [PATCH] Fix issue #705 (#708) * Fix issue #705 * Add canonical links to blogs too --- templates/blogs/details.rs.html | 3 ++- templates/posts/details.rs.html | 1 + templates/users/details.rs.html | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/blogs/details.rs.html b/templates/blogs/details.rs.html index 30974f29..938a6645 100644 --- a/templates/blogs/details.rs.html +++ b/templates/blogs/details.rs.html @@ -24,6 +24,7 @@ + @if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) { @if let Some(ref theme) = blog.theme { @@ -61,7 +62,7 @@ @i18n!(ctx.1, "Edit") } - +

@i18n!(ctx.1, "There's one author on this blog: ", "There are {0} authors on this blog: "; authors.len()) diff --git a/templates/posts/details.rs.html b/templates/posts/details.rs.html index 17829633..a11ddf55 100644 --- a/templates/posts/details.rs.html +++ b/templates/posts/details.rs.html @@ -20,6 +20,7 @@ } + @if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) { @if let Some(ref theme) = blog.theme { diff --git a/templates/users/details.rs.html b/templates/users/details.rs.html index 7663f2e0..617ce1ae 100644 --- a/templates/users/details.rs.html +++ b/templates/users/details.rs.html @@ -22,6 +22,7 @@ + }, {}, { @:header(ctx, &user, follows, is_remote, remote_url)