Switch to subtitle with title_content template
parent
7413a55eae
commit
cb79350f1f
|
@ -36,12 +36,12 @@ handle query_lc => sub {
|
|||
return $val->{'plain'}, structured_answer => {
|
||||
data => {
|
||||
constant => $result,
|
||||
description => $constant->{'name'}
|
||||
subtitle => $constant->{'name'}
|
||||
},
|
||||
templates => {
|
||||
group => 'text',
|
||||
options => {
|
||||
content => 'DDH.constants.content'
|
||||
title_content => 'DDH.constants.title_content'
|
||||
}
|
||||
},
|
||||
meta => {
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<h3 class='zci__caption zci__result'>{{{constant}}}</h3>
|
||||
<h4 class='zci__subheader'>
|
||||
<span class='zci__input'>{{description}}</span>
|
||||
</h4>
|
|
@ -0,0 +1 @@
|
|||
<h3 class='c-base__title'>{{{constant}}}</h3>
|
|
@ -15,12 +15,12 @@ sub build_test
|
|||
return test_zci($text, structured_answer => {
|
||||
data => {
|
||||
constant => $title,
|
||||
description => $subtitle,
|
||||
subtitle => $subtitle,
|
||||
},
|
||||
templates => {
|
||||
group => 'text',
|
||||
options => {
|
||||
content => 'DDH.constants.content'
|
||||
title_content => 'DDH.constants.title_content'
|
||||
}
|
||||
},
|
||||
meta => {
|
||||
|
@ -34,7 +34,7 @@ ddg_goodie_test(
|
|||
"Hardy Ramanujan number" => build_test(
|
||||
'1^3 + 12^3 = 9^3 + 10^3',
|
||||
'Hardy Ramanujan Number 1729',
|
||||
"1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>",
|
||||
"1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>",
|
||||
),
|
||||
#without apostrophe
|
||||
"Avogadros number" => build_test(
|
||||
|
@ -55,7 +55,7 @@ ddg_goodie_test(
|
|||
'0.577215665',
|
||||
),
|
||||
"How old is my grandma?" => undef,
|
||||
"why?" => undef,
|
||||
"why?" => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
||||
|
|
Loading…
Reference in New Issue