get rid of likes and empty webmentions...

This commit is contained in:
Wouter Groeneveld 2021-05-20 16:37:53 +02:00
parent c55c060450
commit 46ff579165
1 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{{ if (not .Params.disableComments) }}
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
{{ $mentions := (where (where (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) "content" "!=" "") "type" "!=" "like") }}
{{ if $mentions }}
<h4 class="page-header" id="mentions">
@ -17,11 +17,7 @@
{{ range $mentions }}
<article class="u-comment h-cite toot">
<p class="p-content p-name">
{{ if eq .content "" }}
<em>Liked 💚</em>
{{ else }}
{{ .content | safeHTML }}
{{ end }}
{{ .content | safeHTML }}
</p>
<div class="meta">
<svg class='icon icon-text' width='24' height='24'>