From d51b7e1d3f059cdf3553022069999acd690fe3dd Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 28 Jul 2022 13:19:08 +0200 Subject: [PATCH] fix btns --- templates/shortcodes/button.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index ad8ef374d..d6c9e9fda 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -1,14 +1,14 @@ -{% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') +{% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} -{% if 'https' in path %} - {% else %} -