fix(head.html): Adds robustness to config.yaml favicon definitions
				
					
				
			Initially assumed that `href` definitions should have `/...` as their pattern, and `baseURL` would always end with `/`, however the omission of `/` as the prefix of the former and suffix of the latter simultaneously, would result in broken favicon paths. Final comment: `..///...` is not breaking, which is worst case scenario with this fix.
This commit is contained in:
		
							parent
							
								
									7070a1992a
								
							
						
					
					
						commit
						b732293f65
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -18,7 +18,7 @@
 | 
				
			||||||
  {{ $favicon | safeHTML }}
 | 
					  {{ $favicon | safeHTML }}
 | 
				
			||||||
  {{ else }}
 | 
					  {{ else }}
 | 
				
			||||||
  {{ range $favicon }}
 | 
					  {{ range $favicon }}
 | 
				
			||||||
  <link rel="{{.rel}}" {{if .type}}type="{{.type}}"{{end}} {{if .sizes}}sizes="{{.sizes}}"{{end}} href="{{$.Site.BaseURL}}{{.href}}" />
 | 
					  <link rel="{{.rel}}" {{if .type}}type="{{.type}}"{{end}} {{if .sizes}}sizes="{{.sizes}}"{{end}} href="{{$.Site.BaseURL}}/{{.href}}" />
 | 
				
			||||||
  {{- end }}
 | 
					  {{- end }}
 | 
				
			||||||
  {{ end }}
 | 
					  {{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue