yequari.com/layouts/partials/avatar.html

14 lines
492 B
HTML
Raw Permalink Normal View History

2024-04-25 06:22:05 +00:00
{{ range first 1 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }}
{{ $d1 := time.ParseDuration "-168h" }}
{{ $t1 := time.Now.Add $d1 }}
{{ $t2 := time.AsTime .PublishDate }}
{{ if $t2.After $t1 }}
<div id="avatar-frame" class="online">
{{ else }}
<div id="avatar-frame" class="busy">
{{ end }}
{{ end }}
<span class="gloss"></span>
<img class="u-photo avatar" src="/images/avatar.jpg">
2024-04-25 06:22:05 +00:00
</div>