update Permalink to RelPermalink (#16033)

This commit is contained in:
FlyingOnion
2019-10-23 03:08:14 +08:00
committed by Kubernetes Prow Robot
parent 97cf15bdb2
commit bbaf0163b5
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -6,6 +6,6 @@
{{ template "shortcodes-blocks_getimage" (dict "name" $bg "ctx" . "target" "bg") }}
{{- end -}}
{{- $image := $.Scratch.Get "bg" -}}
<section id="{{ $id }}"{{ with $class }} class="{{ . }}"{{ end }} style="{{ with $image }}background-image: url({{ .Permalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
<section id="{{ $id }}"{{ with $class }} class="{{ . }}"{{ end }} style="{{ with $image }}background-image: url({{ .RelPermalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
{{ $.Inner }}
</section>