mirror of https://github.com/docker/docs.git
				
				
				
			hugo: don't escape HTML in redirects.json
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									00b5254157
								
							
						
					
					
						commit
						50262b08f7
					
				|  | @ -1,4 +1,4 @@ | |||
| {{ $redirects := newScratch }} | ||||
| {{- $redirects := newScratch }} | ||||
| {{- range $i, $e := site.AllPages -}}  | ||||
|   {{- if .Params.aliases -}} | ||||
|     {{- $target := .RelPermalink -}} | ||||
|  | @ -12,4 +12,5 @@ | |||
| {{- $redirects.SetInMap "paths" . $target -}} | ||||
| {{- end -}} | ||||
| {{- end -}} | ||||
| {{ $redirects.Get "paths" | jsonify }} | ||||
| {{- $opts := dict "noHTMLEscape" true }} | ||||
| {{- $redirects.Get "paths" | jsonify $opts }} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue