{% comment %} * * This file is based on _frontpage-widget.html from the feeling-responsive theme * https://github.com/Phlow/feeling-responsive * Licensed under MIT License * * Customization: Added inline styles to img tags for consistent image sizing * {% endcomment %} {% comment %} * * First the include captures the url and image in a separate variable to make the code better readable. * * These variables are widget_url and widget_image * {% endcomment %} {% capture widget_url %}{% if include.widget.url == NULL %}{% elsif include.widget.url contains 'http' %}{{ include.widget.url }}{% else %}{{ site.url }}{{ site.baseurl }}{{ include.widget.url }}{% endif %}{% endcapture %} {% capture widget_image %}{% if include.widget.image contains 'http' %}{{ include.widget.image }}{% else %}{{ site.urlimg }}{{ include.widget.image }}{% endif %}{% endcapture %}
{% if include.widget.video %} {{ include.widget.video }} {% elsif widget_url == empty %} {% if widget_image != empty %}{% endif %} {% else %} {% if widget_image != empty %}{% endif %} {% endif %}

{{ include.widget.title }}

{% if include.widget.text != empty %}

{{ include.widget.text }}

{% endif %} {% if widget_url != empty %}

{{ site.data.language.more }}

{% endif %}