From a32c889a7b1b6cb7b9a80b4fbab342d9b660a988 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 13 Dec 2024 10:50:17 -0800 Subject: tpl/tplimpl: Fix title attribute in details shortcode --- tpl/tplimpl/embedded/templates/shortcodes/details.html | 2 +- tpl/tplimpl/tplimpl_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/tplimpl/embedded/templates/shortcodes/details.html b/tpl/tplimpl/embedded/templates/shortcodes/details.html index c19d78c3e..82c4f68f7 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/details.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/details.html @@ -68,7 +68,7 @@ Renders an HTML details element. {{- with $class }} class="{{ . }}" {{- end }} {{- with $name }} name="{{ . }}" {{- end }} {{- with $open }} open {{- end }} - {{- with $title }} class="{{ . }}" {{- end -}} + {{- with $title }} title="{{ . }}" {{- end -}} > {{ $summary | .Page.RenderString }} {{ .Inner | .Page.RenderString (dict "display" "block") -}} diff --git a/tpl/tplimpl/tplimpl_integration_test.go b/tpl/tplimpl/tplimpl_integration_test.go index 445316a0a..1e7aa3111 100644 --- a/tpl/tplimpl/tplimpl_integration_test.go +++ b/tpl/tplimpl/tplimpl_integration_test.go @@ -643,7 +643,7 @@ E: An _emphasized_ word. b.AssertFileContent("public/index.html", "
\n Details\n

A: An emphasized word.

\n
", - "
\n A bold word\n

B: An emphasized word.

\n
", + "
\n A bold word\n

B: An emphasized word.

\n
", "
\n Details\n

C: An emphasized word.

\n
", "
\n Details\n

D: An emphasized word.

\n
", "
\n Details\n

D: An emphasized word.

\n
", -- cgit v1.2.3