{% if page %} {% if "](" in body %} {% set body_arr = body | split(pat="](") %} {% set body = body_arr[0] %} {% for i in body_arr %} {% set prev_index = loop.index0 - 1 %} {% if not loop.first %} {% if "![" in body_arr[prev_index] %} {% set_global body = body ~ '](' ~ page.permalink ~ i %} {% else %} {% if i is not starting_with("http") %} {% set base_url = get_url(path="") %} {% set_global body = body ~ '](' ~ base_url ~ i %} {% else %} {% set_global body = body ~ '](' ~ i %} {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endif %} {% set columns = body | safe | markdown | split(pat="|||") %} {% set row_class = "relative pt-6 p-4 flex flex-col sm:grid sm:grid-cols-2 sm:gap-10 xl:flex xl:flex-row"%} {% if 2 < columns | length %} {% set row_class = row_class ~ " lg:items-start" %} {% else %} {% set row_class = row_class ~ " lg:items-center" %} {% endif %} {% set col_class = "flex-1 mb-8 md:mb-0 md:mx-8" %} {% set row_id = '' %} {% if id %} {% set row_id = id %} {% endif %} {% if style %} {% if "center" in style %} {% set row_class = row_class ~ " text-center mx-auto justify-center" %} {% set col_class = col_class ~ " flex-1 m-4 lg:m-0" %} {% endif %} {% if "text-white" in style %} {% set row_class = row_class ~ " text-white" %} {% endif %} {% if "margin" in style %} {% set row_class = row_class ~ " lg:py-28 sm:p-12 md:p-16 lg:p-20" %} {% set col_class = col_class ~ " flex-1 m-4 lg:m-0" %} {% endif %} {% if "lean" in style %} {% set row_class = "relative flex flex-col lg:flex-row items-baseline -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% set col_class = "flex-1 m-4 lg:m-0" %} {% endif %} {% if "between" in style %} {% set row_class = row_class ~ " lg:max-w-6xl" %} {% elif "moderate" in style %} {% set row_class = row_class ~ " lg:m-20" %} {% endif %} {% if "narrow" in style %} {% set row_class = row_class ~ " lg:max-w-3xl" %} {% elif "moderate" in style %} {% set row_class = row_class ~ " lg:m-20" %} {% endif %} {% endif %} {% set styles = "" %} {% if bgPath %} {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover" %} {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% endif %} {% if bgColor %} {% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %} {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% endif %} {% if gradient %} {% set styles = "background: " ~ gradient ~ "; background-size: cover" %} {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% endif %}