From e5e2b0789b93b2e2e2516aef90b641e326c40ec4 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 9 Nov 2023 13:37:07 +0800 Subject: [PATCH] Update admonition block template --- templates/admonition.html.erb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/templates/admonition.html.erb b/templates/admonition.html.erb index 4788308..0bcd0a2 100644 --- a/templates/admonition.html.erb +++ b/templates/admonition.html.erb @@ -1,16 +1,10 @@ class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>"> -
<% - if document.attr? :icons, 'font' %> - <% - elsif document.attr? :icons %> - - - <% - else %> -
<%= @caption %>
<% - end %> +
+ + + <% if title? %>