fixed button path
This commit is contained in:
parent
7dfffe3406
commit
1edcc99797
@ -1,3 +1,5 @@
|
|||||||
<button onclick="window.location='/'" class="border-transparent flex flex-col border-2 w-full items-start rounded h-16 md:h-24 transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
|
|
||||||
|
{% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first %}
|
||||||
|
<button onclick="window.location='{{path}}'" class="border-transparent flex flex-col border-2 w-full items-start rounded h-16 md:h-24 transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
|
||||||
{{ body | trim_start_matches(pat="<p>") | safe}}
|
{{ body | trim_start_matches(pat="<p>") | safe}}
|
||||||
</button>
|
</button>
|
Loading…
Reference in New Issue
Block a user