diff --git a/tetras_extraction/script/templates/activite.rq b/tetras_extraction/script/templates/activite.rq index 5c430b7aa73a56adf51568cadeb3175b3b9a87ec..ad2284f0addeeba47be42c3dcdc5bf84db49c105 100644 --- a/tetras_extraction/script/templates/activite.rq +++ b/tetras_extraction/script/templates/activite.rq @@ -14,7 +14,15 @@ template mt:activite(?act) { '+++' st:nl() st:nl() ?desc st:nl() - + + '<div class="commentaireInfoGroup">' st:nl() + group { + '<div class="commentaireInfo">' st:nl() + ?info_comment + '</div>' st:nl() + } + '</div>' st:nl() + # Insert a Hugo shortcode to load the quiz if this is a quiz activity if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "") st:call-template(mt:quiz, ?act) @@ -25,6 +33,9 @@ where { ?act :id ?id . ?act :titre ?title . ?act :description_md ?desc . + optional { + ?act :commentaireInfo_md ?info_comment . + } optional { # Turn the page index into a Hugo weight: increment and add a zero, to # leave room for adding new pages in-between later diff --git a/tetras_extraction/script/templates/quiz.rq b/tetras_extraction/script/templates/quiz.rq index 2fd129806a62ac232e9c8c3ebabe78a3ad3542b3..233b475aebd73b42925e2cb85b61ffdb9f0db063 100644 --- a/tetras_extraction/script/templates/quiz.rq +++ b/tetras_extraction/script/templates/quiz.rq @@ -13,7 +13,6 @@ template mt:quiz(?quiz) { box { st:call-template(mt:qcu, ?quiz) st:call-template(mt:qcm, ?quiz) - #st:call-template(mt:json_in_ttl, ?quiz) } "}" }