fix: case page title

Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
TheYoungManLi 2021-09-13 11:11:24 +08:00
parent 40ad7bdf97
commit 1f0799e23d
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,8 @@
{{ with .specialContent }}
{{ if .link }}
{{ partial "case_specialContent.html" . }}
{{ else if .level }}
{{ partial "case_specialContent.html" . }}
{{ else }}
<p class="{{ if .bold }}title-bold{{end}}">{{ .text }}</p>
{{ end }}

View File

@ -1,5 +1,5 @@
{{ $content := . }}
<a href="{{ .link }}" style="{{ if .link }}color: #55bc8a;{{end}}" class="{{ if .bold }}title-bold{{end}}">
<a {{ if .link }}href="{{ .link }}"{{end}} style="{{ if .link }}color: #55bc8a;{{end}}" class="{{ if .bold }}title-bold{{end}}">
{{ if .level }}
<h{{ .level }} style="{{ if .color }}color:{{.color}};{{end}}">{{ .text }}</h{{ .level }}>
{{ else }}