Skip to content

Commit

Permalink
fixed avatar links issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoshell committed Jun 27, 2024
1 parent 6cd1a47 commit e30fcdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ body {
animation: scaleAndRotate 5s linear 1;
animation-fill-mode: forwards;
transition: opacity 0.5s ease-in-out;
z-index: -1;
}

.member-list li:first-child:hover .cube {
Expand Down
12 changes: 11 additions & 1 deletion layouts/shortcodes/memberlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
{{ $image := resources.Get $avatar }}
{{- if $image }}
{{ $image := $image.Process "fit 200x200" }}
{{- if .link }}
<a href="{{ .link }}">
<img class="avatar" src="{{ $image.RelPermalink }}" />
</a>
{{ else }}
<img class="avatar" src="{{ $image.RelPermalink }}" />
{{end -}}
{{ if eq .name "disconnect3d" }}
<div class="cube">
<img src="{{ $image.RelPermalink }}" class="front">
Expand All @@ -34,7 +38,13 @@
</div>
{{ end }}
{{ else }}
<img class="blank-avatar" src="/blank_avatar.png" alt="No avatar image" />
{{- if .link }}
<a href="{{ .link }}">
<img class="blank-avatar" src="/blank_avatar.png" alt="No avatar image" />
</a>
{{ else }}
<img class="blank-avatar" src="/blank_avatar.png" alt="No avatar image" />
{{end -}}
{{end -}}
{{end -}}
<h4 class="member-name">
Expand Down

0 comments on commit e30fcdf

Please sign in to comment.