Skip to content

Commit d3e625f

Browse files
authored
[BUGFIX] Prevent duplicate titles in admonitions (#727)
Resolves #725
1 parent 3e199fc commit d3e625f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Documentation-rendertest/Admonitions-and-buttons/Index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Admonitions (boxes)
2020
Equations within a note
2121
:math:`G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})`.
2222

23+
.. admonition:: Note
24+
25+
Unfortunately, PhpStorm only recognizes a file as a PHP archive when it has the ``.phar`` suffix.
26+
This is remedied by creating a symbolic link: ``ln -s phpunit tools/phpunit.phar``.
27+
2328
.. attention::
2429
Equations within a note
2530
:math:`G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})`.

packages/typo3-docs-theme/resources/template/body/admonition.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
<div class="admonition {{ name }}{{ class ? (' '~class) }}{% if node.classes %} {{ node.classesString }}{% endif %}" role="alert">
2424
{% if titleOfSeverity %}<p class="admonition-title">{{ titleOfSeverity }}</p>
25-
{% endif %}
26-
{% if title and isTitled %}<p class="admonition-title">{{ renderNode(title) }}</p>
25+
{% elseif title and isTitled %}<p class="admonition-title">{{ renderNode(title) }}</p>
2726
{% endif %}
2827
{% if title and not isTitled %}<p>{{ renderNode(title) }}</p>
2928
{% endif %}

0 commit comments

Comments
 (0)