mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Drop some extra whitespace
This commit is contained in:
parent
a4694fbaf9
commit
63e6f8021f
1 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,8 @@
|
|||
{{ if $webmention.author_name -}}
|
||||
<span itemprop="agent" itemscope="" itemtype="https://schema.org/Person" class="h-card p-author vcard"><span itemprop="name" class="p-name fn n">{{ $webmention.author_name }}</span></span>
|
||||
{{ else if $webmention.title -}}
|
||||
<span itemprop="name" class="p-name">{{ $webmention.title -}}</span>
|
||||
<span itemprop="name" class="p-name">{{ $webmention.title | replaceRE ` \n` `
|
||||
` -}}</span>
|
||||
{{ else -}}
|
||||
{{ $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}}
|
||||
{{ end -}}
|
||||
|
@ -68,7 +69,8 @@
|
|||
<a class="u-url" itemprop="url" href="{{ $src }}" rel="nofollow ugc">
|
||||
<span itemprop="name" class="p-name">
|
||||
{{ if $webmention.title -}}
|
||||
{{ $title | truncate 200 -}}
|
||||
{{ $title | truncate 200 | replaceRE ` \n` `
|
||||
` -}}
|
||||
{{ else -}}
|
||||
{{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in a new issue