mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Fix blog avatar
This commit is contained in:
@@ -350,3 +350,12 @@ footer {
|
||||
.map {
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------
|
||||
// Blog pages
|
||||
// -------------------------------------------------------
|
||||
|
||||
.blog-avatar {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 1em !important;
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
{{ define "content" }}
|
||||
<article class="media">
|
||||
<figure class="media-left">
|
||||
<figure class="blog-avatar media-left">
|
||||
<p class="image is-64x64">
|
||||
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
||||
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
||||
|
||||
Reference in New Issue
Block a user