Skip to content

Commit

Permalink
Update author-info.html
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 25, 2024
1 parent e185077 commit b01a595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/partials/author-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<a class="d-flex align-items-center text-muted text-decoration-none" href="{{ $authorUrl }}" target="_blank" rel="noopener">
{{ $avatarWidth := 32 -}}
{{- $avatarWidth2x := mul $avatarWidth 2 -}}
{{- $avatarHeight := $avatarWidth -}}
{{- $imgUrl := printf "%s%s%d" $authorUrl ".png?size=" $avatarWidth -}}
{{- $imgUrl2x := printf "%s%s%d" $authorUrl ".png?size=" $avatarWidth2x -}}
<img class="mb-0 me-2 rounded-2"
Expand All @@ -15,7 +16,7 @@
alt=""
{{ if eq .lazyload true }}loading="lazy"{{ end }}
width="{{ $avatarWidth }}"
height="{{ $avatarWidth }}">
height="{{ $avatarHeight }}">
<span>@{{ $author }}</span>
</a>
<span class="d-flex align-items-center ms-3" title="{{ $date | dateFormat "02 Jan 06 15:04 MST" }}">
Expand Down

0 comments on commit b01a595

Please sign in to comment.