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">
|
<div class="tootlist" style="margin-bottom: -3rem">
|
||||||
{{ range $mentions }}
|
{{ range $mentions }}
|
||||||
<article class="u-comment h-cite toot">
|
<article class="u-comment h-cite toot">
|
||||||
|
<small>
|
||||||
<p class="p-content p-name">
|
<p class="p-content p-name">
|
||||||
{{ .name | safeHTML }}: {{ .content | safeHTML }}
|
{{ .name | safeHTML }}: {{ .content | safeHTML }}
|
||||||
</p>
|
</p>
|
||||||
|
@ -29,19 +30,10 @@
|
||||||
</time>
|
</time>
|
||||||
| by
|
| by
|
||||||
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
|
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
|
||||||
{{ $name := .author.name | safeHTML }}
|
{{ .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 }}
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</small>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue