diff --git a/_includes/feature_row b/_includes/feature_row index 965a0a44..798ac44e 100644 --- a/_includes/feature_row +++ b/_includes/feature_row @@ -9,6 +9,13 @@
{% for f in feature_row %} + + {% if f.url contains "http" %} + {% capture f_url %}{{ f.url }}{% endcapture %} + {% else %} + {% capture f_url %}{{ f.url | prepend: base_path }}{% endcapture %} + {% endif %} +
diff --git a/_includes/page__hero.html b/_includes/page__hero.html index bdae7703..cbb5689f 100644 --- a/_includes/page__hero.html +++ b/_includes/page__hero.html @@ -4,6 +4,12 @@ {% capture img_path %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endcapture %} {% endif %} +{% if page.header.cta_url contains "http" %} + {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %} +{% else %} + {% capture cta_path %}{{ page.header.cta_url | prepend: base_path }}{% endcapture %} +{% endif %} + {% if page.header.overlay_image contains "http" %} {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %} {% elsif page.header.overlay_image %} @@ -29,7 +35,7 @@

{% include read-time.html %}

{% endif %} {% if page.header.cta_url %} -

{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label }}

+

{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label }}

{% endif %}
{% else %}