get rid of likes and empty webmentions...
This commit is contained in:
parent
c55c060450
commit
46ff579165
|
@ -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'>
|
||||
|
|
Loading…
Reference in New Issue