10 lines
414 B
HTML
10 lines
414 B
HTML
{{ $numOfParams := ( len .Params ) }}
|
|
{{ $avatar := "avatar.jpg" }}
|
|
{{ if eq $numOfParams 1 }}{{ $avatar := .Get 1 }}{{ end }}
|
|
<div class="box box--avatar">
|
|
{{ if eq $numOfParams 2 }}<a href="{{.Get 1 }}">{{ end }}
|
|
{{ $path := "/images/" }} {{ with $.Site.Params.imagespath }} {{ $path := ( . ) }}{{ end }}
|
|
<img class="avatar" src="{{ $path }}{{ $avatar }}"/>
|
|
{{ if eq $numOfParams 2 }}</a>{{ end }}
|
|
</div>
|