get rid of avatars in mentions
This commit is contained in:
parent
662fa300a0
commit
39ed12254f
|
@ -16,6 +16,7 @@
|
|||
<div class="tootlist" style="margin-bottom: -3rem">
|
||||
{{ range $mentions }}
|
||||
<article class="u-comment h-cite toot">
|
||||
<small>
|
||||
<p class="p-content p-name">
|
||||
{{ .name | safeHTML }}: {{ .content | safeHTML }}
|
||||
</p>
|
||||
|
@ -29,19 +30,10 @@
|
|||
</time>
|
||||
| by
|
||||
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
|
||||
{{ $name := .author.name | safeHTML }}
|
||||
{{ if isset .author "picture" }}
|
||||
<div class="avatar">
|
||||
<img class="u-photo" loading="lazy" src="https://jam.brainbaking.com{{ .author.picture | safeHTML }}" alt="{{ $name }}" />
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="avatar">
|
||||
<img class="u-photo" loading="lazy" src="/img/avatar-anonymous.jpg" alt="{{ $name }} anonymous photo" />
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ $name }}
|
||||
{{ .author.name | safeHTML }}
|
||||
</a>
|
||||
</div>
|
||||
</small>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue