Skip to content

Commit

Permalink
properly size the author image
Browse files Browse the repository at this point in the history
  • Loading branch information
stebunovd committed Jan 2, 2025
1 parent 0e4e9e8 commit ee31507
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/blog/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ <h1>Blog</h1>
<div class="blog--item-meta">
<div class="blog--item-author">
<img
alt="{{ .Params.author }}"
class="blog--item-userpic"
src="{{ printf "/img/userpics/%s.png" (urlize .Params.author) }}"
srcset="{{ printf "/img/userpics/%[email protected]" (urlize .Params.author) }}"
/>
{{ .Params.author }}
</div>
Expand Down
1 change: 1 addition & 0 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h1 class="article--title">{{ .Title }}</h1>
alt="{{ .Params.author }}"
class="article--userpic"
src="{{ printf "/img/userpics/%s.png" (urlize .Params.author) }}"
srcset="{{ printf "/img/userpics/%[email protected]" (urlize .Params.author) }}"
/>
</div>

Expand Down
Binary file modified static/img/userpics/denis-stebunov.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/userpics/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee31507

Please sign in to comment.