2023-05-14 21:05:07 +00:00
|
|
|
{{- $context := .context }}
|
|
|
|
{{- $src := .src }}
|
2023-05-18 12:01:50 +00:00
|
|
|
{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $context) .id }}
|
2023-05-14 21:05:07 +00:00
|
|
|
{{- with $context }}
|
2023-05-18 12:01:50 +00:00
|
|
|
{{- with .Resources.Match $src }}
|
2023-05-14 21:05:07 +00:00
|
|
|
{{- range . }}
|
|
|
|
{{- $src = .RelPermalink }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
<div class="sc-openapi-wrapper is-loading helper-loading-container">
|
|
|
|
<div
|
|
|
|
class="sc-openapi-container"
|
|
|
|
id="openapi-{{ $id }}"
|
|
|
|
openapi-url="{{ $src }}"
|
|
|
|
></div>
|
|
|
|
</div>
|
2023-05-18 12:01:50 +00:00
|
|
|
{{- .Store.Set "hasOpenapi" true }}
|
2023-05-14 21:05:07 +00:00
|
|
|
{{- end }}
|