mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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">}}
|
{{< tabs groupid="shortcode-parameter">}}
|
||||||
{{% tab title="shortcode" %}}
|
{{% tab title="shortcode" %}}
|
||||||
|
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{%/* siteparam name="editURL" */%}}
|
{{%/* siteparam name="editURL" */%}}
|
||||||
````
|
````
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<div
|
<div
|
||||||
class="sc-openapi-container"
|
class="sc-openapi-container"
|
||||||
id="openapi-{{ $id }}"
|
id="openapi-{{ $id }}"
|
||||||
openapi-url="{{ $src }}"
|
data-openapi-url="{{ $src }}"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
{{- .Store.Set "hasOpenapi" true }}
|
{{- .Store.Set "hasOpenapi" true }}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{- $params = index . (lower $paramName) }}
|
{{- $params = index . (lower $paramName) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $params }}
|
{{- with $params }}
|
||||||
{{- $params | .RenderString }}
|
{{- . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- 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 }}
|
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 }}')"
|
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-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 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>
|
</button>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2042,6 +2042,7 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right {
|
||||||
}
|
}
|
||||||
|
|
||||||
#body .tab-nav-button > *{
|
#body .tab-nav-button > *{
|
||||||
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -432,7 +432,7 @@ function initOpenapi( update, attrs ){
|
||||||
activated: true,
|
activated: true,
|
||||||
theme: swagger_code_theme,
|
theme: swagger_code_theme,
|
||||||
},
|
},
|
||||||
url: oc.getAttribute('openapi-url'),
|
url: oc.dataset.openapiUrl,
|
||||||
validatorUrl: 'none',
|
validatorUrl: 'none',
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue