mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
2fa50697fd
Now user can choose to use local avatar or gravatar
23 lines
No EOL
731 B
HTML
23 lines
No EOL
731 B
HTML
<div class="intro">
|
|
{{ $cdn_url := .Scratch.Get "cdn_url" }}
|
|
{{ with .Site.Params.avatar}}
|
|
{{ $avatar := .}}
|
|
<div class="avatar">
|
|
<a href="/posts/"> <img src="{{ (printf "%s%s" $cdn_url $avatar)}}"> </a>
|
|
</div>
|
|
{{ end }}
|
|
{{ if or .Params.gravatar.Email (and .Site.Params.gravatar.Email (ne .Params.gravatar.Email false)) }}
|
|
<div class="avatar">
|
|
<a href="/posts/"> <img src="https://www.gravatar.com/avatar/{{ md5 .Site.Params.gravatar.email }}?s=240&d=mp" alt="gravatar"> </a>
|
|
</div>
|
|
{{ end }}
|
|
{{ with .Site.Params.subtitle}}
|
|
<h2 class="description">
|
|
{{ . }}
|
|
</h2>
|
|
{{ end }}
|
|
<div class="social-links">
|
|
{{ partial "social.html" . }}
|
|
|
|
</div>
|
|
</div> |