mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 17:53:07 +00:00
18 lines
No EOL
510 B
HTML
18 lines
No EOL
510 B
HTML
{{- $context := .context }}
|
|
{{- $src := .src }}
|
|
{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $context.Page) .id }}
|
|
{{- with $context }}
|
|
{{- with .Page.Resources.Match $src }}
|
|
{{- 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>
|
|
{{- .Page.Store.Set "hasOpenapi" true }}
|
|
{{- end }} |