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