aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/details.html
blob: cc867aa715f845335bed6afc73992256418b62e3 (plain)
1
2
3
4
5
6
7
<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
  {{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
  <summary>{{ $summary | .Page.RenderString }}</summary>
  <div class="markdown-inner">
    {{ .Inner | .Page.RenderString }}
  </div>
</details>