test remove button shortcode

This commit is contained in:
timurgordon
2022-08-01 12:55:55 +02:00
parent bc3edae84c
commit 245e9ff63b
5 changed files with 29 additions and 33 deletions

View File

@@ -10,6 +10,6 @@
{% else %}
<button onclick="window.location='{{get_url(path=url)}}'"
class="leading-6 border-transparent flex flex-col border-2 w-full items-start rounded transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
<a href="{{get_url(path=url)}}"> {{ body | trim_start_matches(pat="<p>") | safe}}</a>
<a href="{{get_url(path=url)}}"> {{ body | trim_start_matches(pat="<p>") | striptags | safe}}</a>
</button>
{% endif %}