mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: remove HTML validation errors #644
This commit is contained in:
parent
660fd1c8d4
commit
e7eb9aa366
6 changed files with 7 additions and 7 deletions
|
@ -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" */%}}
|
||||
````
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{{- $params = index . (lower $paramName) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if $params }}
|
||||
{{- $params | .RenderString }}
|
||||
{{- with $params }}
|
||||
{{- . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -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) }}​{{ 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) }}​{{ end }}</div>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
{{- end }}
|
||||
</div>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue