Skip to content

Commit

Permalink
Fix Profile Mode imageTitle missing
Browse files Browse the repository at this point in the history
fixes: #945
  • Loading branch information
adityatelange committed Jul 9, 2022
1 parent 621c9f6 commit c0b7ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion assets/css/common/profile-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
.profile img {
display: inline-table;
border-radius: 50%;
pointer-events: none;
}

.buttons {
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/index_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
{{- $img = $img.Resize "150x150" }}
{{- end }}
{{- end }}
<img src="{{ $img.Permalink }}" alt="{{ .imageTitle | default "profile image" }}"
<img draggable="false" src="{{ $img.Permalink }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
{{- else }}
<img src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}"
<img draggable="false" src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
{{- end }}
{{- end }}
Expand Down

0 comments on commit c0b7ea5

Please sign in to comment.