]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl/tplimpl: Add details shortcode
authorracehd <7813112-racehd@users.noreply.gitlab.com>
Sun, 1 Dec 2024 15:30:34 +0000 (10:30 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 13 Dec 2024 08:24:20 +0000 (09:24 +0100)
commit4f130f6e4f891d7df1029a29336efe9e1475d17f
tree7d617be02c7ceb2857ead45e89272cde34121293
parent9dfa1126177952433f8339a87fb566c2959fc3d6
tpl/tplimpl: Add details shortcode

- Add new shortcode to render details HTML element.
- Implement integration tests to check: default state, custom summary, open state,  attribute sanitization, allowed attributes, and localization of default summary text.
- Update docs to include details shortcode.

Closes # 13090
docs/content/en/content-management/shortcodes.md
docs/data/embedded_template_urls.toml
tpl/tplimpl/embedded/templates/shortcodes/details.html [new file with mode: 0644]
tpl/tplimpl/tplimpl_integration_test.go