16 lines
514 B
HTML
16 lines
514 B
HTML
{{ if not .Site.Params.disableDocsComments }}
|
|
{{ if not .Page.Params.disableDocsComments }}
|
|
{{ if hugo.IsProduction }}
|
|
<button type="button" class="collapsible">Expand</button>
|
|
<div class="collapsible_content">
|
|
{{ partial "docscomments-content.html" . }}
|
|
</div>
|
|
|
|
{{- $collapsiblejs := resources.Get "/js/collapsible.js" | js.Build "collapsible.js" | minify | fingerprint }}
|
|
<script src="{{ $collapsiblejs.Permalink }}"></script>
|
|
{{ else }}
|
|
<p>Enable HUGO_ENV=production to see.</p>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
{{ end }} |