forked from www/datalad-blog
dlcols only matched the string "true", so single=true without quotes built fine but gave two columns. Its style block was repeated with every use; in assets/css/extended/ PaperMod bundles it into the site stylesheet once. dlmd and dldetails get a comment on why dlmd is needed and why dldetails is not Hugo's built-in details, which drops the id that a link points to.
7 lines
333 B
HTML
7 lines
333 B
HTML
{{- /* A collapsible block. Unlike Hugo's built-in details shortcode, it takes
|
|
an id, so that a link can point to the block. Wrap Markdown content in
|
|
{{% dlmd %}}, see dlmd.html. */ -}}
|
|
<details{{ with .Get "id" }} id="{{ . }}"{{ end }}>
|
|
<summary><strong>{{ .Get "summary" | markdownify }}</strong></summary>
|
|
{{ .Inner }}
|
|
</details>
|