theme: remove HTML validation errors #644

This commit is contained in:
Sören Weber 2023-09-21 21:34:02 +02:00
parent 660fd1c8d4
commit e7eb9aa366
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
6 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,6 @@ While the examples are using shortcodes with named parameter you are free to use
{{< tabs groupid="shortcode-parameter">}}
{{% tab title="shortcode" %}}
````go
{{%/* siteparam name="editURL" */%}}
````

View file

@ -15,7 +15,7 @@
<div
class="sc-openapi-container"
id="openapi-{{ $id }}"
openapi-url="{{ $src }}"
data-openapi-url="{{ $src }}"
></div>
</div>
{{- .Store.Set "hasOpenapi" true }}

View file

@ -11,7 +11,7 @@
{{- $params = index . (lower $paramName) }}
{{- end }}
{{- end }}
{{- if $params }}
{{- $params | .RenderString }}
{{- with $params }}
{{- . }}
{{- end }}
{{- end }}

View file

@ -65,10 +65,10 @@
class="tab-nav-button tab-panel-style cstyle {{ .style }}{{ cond (eq $idx 0) " active" ""}}"{{ if .color }} style="--VARIABLE-BOX-color: {{ .color }};"{{ end }}
onclick="switchTab('{{ $groupid }}','{{ .itemid }}')"
>
<div>
<span>
<div class="tab-nav-hidden">{{ if .icon }}<i class="{{ .icon }}"></i>{{ end }}{{ if and .icon .title }} {{ end }}{{ .title | $page.RenderString }}{{ if (not .title) }}&#8203;{{ end }}</div>
<div class="tab-nav-text">{{ if .icon }}<i class="{{ .icon }}"></i>{{ end }}{{ if and .icon .title }} {{ end }}{{ .title | $page.RenderString }}{{ if (not .title) }}&#8203;{{ end }}</div>
</div>
</span>
</button>
{{- end }}
</div>

View file

@ -2042,6 +2042,7 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right {
}
#body .tab-nav-button > *{
display: block;
position: relative;
}

View file

@ -432,7 +432,7 @@ function initOpenapi( update, attrs ){
activated: true,
theme: swagger_code_theme,
},
url: oc.getAttribute('openapi-url'),
url: oc.dataset.openapiUrl,
validatorUrl: 'none',
});
})