1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 08:12:11 +00:00

fix entity escaping

This commit is contained in:
Rohan Kumar 2022-09-22 10:29:22 -07:00
parent 2218a44a36
commit c2fafa8d97
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -70,7 +70,7 @@
<span itemprop="name" class="p-name"> <span itemprop="name" class="p-name">
{{ if $webmention.title -}} {{ if $webmention.title -}}
{{ $title | truncate 200 | replaceRE ` \n` ` {{ $title | truncate 200 | replaceRE ` \n` `
` -}} ` | safeHTML -}}
{{ else -}} {{ else -}}
{{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}} {{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}}
{{ end -}} {{ end -}}