diff options
author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-07-09 17:38:58 +0300 |
---|---|---|
committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-07-09 17:39:32 +0300 |
commit | c0b7ea5f4ba93b9c19d756a283bcff1cabaf8677 (patch) | |
tree | 2d284831ebe1a2506ace2025e36c57e6494f9761 | |
parent | 621c9f60fbf5fb96415fa2c031d50c83514164a8 (diff) |
Fix Profile Mode imageTitle missing
fixes: #945
-rw-r--r-- | assets/css/common/profile-mode.css | 1 | ||||
-rw-r--r-- | layouts/partials/index_profile.html | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index 6826d960..58f28198 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -17,7 +17,6 @@ .profile img { display: inline-table; border-radius: 50%; - pointer-events: none; } .buttons { diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 5d28afa4..c2ff3e69 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -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 }} |