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
+2 -2
View File
@@ -32,10 +32,10 @@
{{ $p := . }}
{{ if (isset .Params.card "anchors") }}
{{ range .Params.card.anchors }}
<li><a href="{{ $p.Permalink }}{{ .anchor }}">{{ .title }}</a></li>
<li><a href="{{ $p.RelPermalink }}{{ .anchor }}">{{ .title }}</a></li>
{{ end }}
{{ else }}
<li><a href={{ .Permalink }}>
<li><a href="{{ .RelPermalink }}">
{{ if (isset .Params.card "title") }}{{ .Params.card.title }}{{ else }}{{ .LinkTitle }}{{ end }}
</a></li>
{{ end }}