💄 style: use note admonition for TL;DR

This commit is contained in:
welpo 2024-09-09 01:40:38 +02:00
parent 0b75c8f4c4
commit b9bf4b2fd6
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

View File

@ -134,9 +134,14 @@
</ul> </ul>
{% if page.extra.tldr %} {% if page.extra.tldr %}
<div class="tldr"> <div class="admonition note">
<h3>TL;DR:</h3> <div class="admonition-icon admonition-icon-note"></div>
<p>{{ page.extra.tldr }}</p> <div class="admonition-content">
<strong class="admonition-title">
<span title="Too long; didn't read (summary)">TL;DR</span>
</strong>
<p>{{ page.extra.tldr | markdown | safe }}</p>
</div>
</div> </div>
{% endif %} {% endif %}