mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Remove whitespace around urls wherever applicable
- corrects mistyped urls with leading or trailing whitespaces
This commit is contained in:
parent
8af7c551ff
commit
14c524539b
@ -10,7 +10,7 @@
|
||||
{{- with .buttons }}
|
||||
<div class="buttons">
|
||||
{{- range . -}}
|
||||
<a class="button" href="{{ .url }}" rel="noopener" title="{{ .name | humanize }}">
|
||||
<a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | humanize }}">
|
||||
<span class="button-inner">{{ .name }}</span>
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="social-icons">
|
||||
{{- range . -}}
|
||||
<a href="{{ .url }}" target="_blank" rel="noopener noreferrer me"
|
||||
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me"
|
||||
title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
@ -9,9 +9,9 @@
|
||||
"thumbnailUrl": {{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }},
|
||||
"sameAs": [
|
||||
{{- if .Site.Params.schema.sameAs }}
|
||||
{{ range $i, $e := .Site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
||||
{{ range $i, $e := .Site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }}
|
||||
{{- else}}
|
||||
{{ range $i, $e := .Site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ $e.url }}{{ end }}
|
||||
{{ range $i, $e := .Site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }}
|
||||
{{- end}}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user