Skip to content

Commit a32c889

Browse files
authored
tpl/tplimpl: Fix title attribute in details shortcode
1 parent 852d868 commit a32c889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tpl/tplimpl/embedded/templates/shortcodes/details.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{{- with $class }} class="{{ . }}" {{- end }}
6969
{{- with $name }} name="{{ . }}" {{- end }}
7070
{{- with $open }} open {{- end }}
71-
{{- with $title }} class="{{ . }}" {{- end -}}
71+
{{- with $title }} title="{{ . }}" {{- end -}}
7272
>
7373
<summary>{{ $summary | .Page.RenderString }}</summary>
7474
{{ .Inner | .Page.RenderString (dict "display" "block") -}}

tpl/tplimpl/tplimpl_integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ E: An _emphasized_ word.
643643

644644
b.AssertFileContent("public/index.html",
645645
"<details>\n <summary>Details</summary>\n <p>A: An <em>emphasized</em> word.</p>\n</details>",
646-
"<details class=\"my-class\" name=\"my-name\" open class=\"my-title\">\n <summary>A <strong>bold</strong> word</summary>\n <p>B: An <em>emphasized</em> word.</p>\n</details>",
646+
"<details class=\"my-class\" name=\"my-name\" open title=\"my-title\">\n <summary>A <strong>bold</strong> word</summary>\n <p>B: An <em>emphasized</em> word.</p>\n</details>",
647647
"<details>\n <summary>Details</summary>\n <p>C: An <em>emphasized</em> word.</p>\n</details>",
648648
"<details>\n <summary>Details</summary>\n <p>D: An <em>emphasized</em> word.</p>\n</details>",
649649
"<details>\n <summary>Details</summary>\n <p>D: An <em>emphasized</em> word.</p>\n</details>",

0 commit comments

Comments
 (0)