This repository has been archived on 2022-01-14. You can view files and clone it, but cannot push or open issues/pull-requests.
nwt/layouts/partials/docscomments.html

16 lines
514 B
HTML
Raw Normal View History

{{ 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 }}