mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-28 08:43:30 -05:00 
			
		
		
		
	Use a less hacky solution to fix trailing newline in render-link.html
This commit is contained in:
		| @@ -1 +1,8 @@ | ||||
| <a href="{{ .Destination | safeURL }}"{{ with .Title}}title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>{{/* DO NOT REMOVE THE TRAILING NEWLINE HERE -- it prevents there from being whitespace in between the link and the next word/element (for example: if there's a period right after a link) */}} | ||||
| <a | ||||
|     href="{{ .Destination | safeURL }}" | ||||
|     {{ with .Title}}title="{{ . }}"{{ end }} | ||||
|     {{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }} | ||||
| > | ||||
|     {{- .Text | safeHTML -}} | ||||
| </a> | ||||
| {{- print "" -}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user