From 905fe54fa33b259c2c980a75beb674ba8ee4b6e2 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 3 Jan 2022 02:35:04 +0900 Subject: [PATCH] Make blog cover a link --- assets/themes/default/_global.scss | 14 +++++++++----- templates/users/dashboard.rs.html | 5 ++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/assets/themes/default/_global.scss b/assets/themes/default/_global.scss index 975b588e..378a513d 100644 --- a/assets/themes/default/_global.scss +++ b/assets/themes/default/_global.scss @@ -219,15 +219,19 @@ p.error { margin: 20px; } + .cover-link { + margin: 0; + + &:hover { + opacity: 0.9; + } + } + .cover { min-height: 10em; background-position: center; background-size: cover; margin: 0px; - - &:hover { - opacity: 0.9; - } } header { @@ -611,4 +615,4 @@ code { .function{ color:inherit; } -} \ No newline at end of file +} diff --git a/templates/users/dashboard.rs.html b/templates/users/dashboard.rs.html index 239ec6b7..698c1620 100644 --- a/templates/users/dashboard.rs.html +++ b/templates/users/dashboard.rs.html @@ -18,7 +18,10 @@ @for blog in blogs {
@if blog.banner_id.is_some() { -
+ +
+
+
}

@blog.title

@Html(blog.summary_html)