mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Remove whitespace around urls wherever applicable
- corrects mistyped urls with leading or trailing whitespaces
This commit is contained in:
		| @@ -10,7 +10,7 @@ | |||||||
|         {{- with .buttons }} |         {{- with .buttons }} | ||||||
|         <div class="buttons"> |         <div class="buttons"> | ||||||
|             {{- range . -}} |             {{- 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> |                 <span class="button-inner">{{ .name }}</span> | ||||||
|             </a> |             </a> | ||||||
|             {{- end -}} |             {{- end -}} | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <div class="social-icons"> | <div class="social-icons"> | ||||||
|     {{- range . -}} |     {{- 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> |         title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a> | ||||||
|     {{- end -}} |     {{- end -}} | ||||||
| </div> | </div> | ||||||
|   | |||||||
| @@ -9,9 +9,9 @@ | |||||||
|   "thumbnailUrl": {{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}, |   "thumbnailUrl": {{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}, | ||||||
|   "sameAs": [ |   "sameAs": [ | ||||||
|     {{- if .Site.Params.schema.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}} |     {{- 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}} |     {{- end}} | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange