Skip to content

Commit c94e398

Browse files
committed
Fix Profile Mode imageTitle missing
fixes: adityatelange#945
1 parent dd0fb19 commit c94e398

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

assets/css/common/profile-mode.css

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
.profile img {
1818
display: inline-table;
1919
border-radius: 50%;
20-
pointer-events: none;
2120
}
2221

2322
.buttons {

layouts/partials/index_profile.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
{{- $img = $img.Resize "150x150" }}
2121
{{- end }}
2222
{{- end }}
23-
<img src="{{ $img.Permalink }}" alt="{{ .imageTitle | default "profile image" }}"
23+
<img draggable="false" src="{{ $img.Permalink }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
2424
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
2525
{{- else }}
26-
<img src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}"
26+
<img draggable="false" src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
2727
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
2828
{{- end }}
2929
{{- end }}

0 commit comments

Comments
 (0)