mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
hugo: don't escape HTML in redirects.json
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user