{% load wagtailcore_tags wagtailimages_tags static tip_tags core_tags i18n %} {% block content %} {% get_your_tip as your_tip %}
{% if most_popular_tip and your_tip.get_number_of_popular_tips %}

{% trans "Most popular tip" %}

{% if settings.core.SiteSettings.enable_clickable_tags %} {% if most_popular_tip.tags_list|first %}
{% if most_popular_tip.image %} {% image most_popular_tip.image width-20 jpegquality-70 as yourtips_article_icon %} {% endif %} {% for tag in most_popular_tip.tags_list %} {% if forloop.first %} {{tag}} {% endif %} {% endfor %}
{% endif %} {% endif %} {% for block in most_popular_tip.body %} {% if block.block_type == 'paragraph' %}

{{ block.value }}

{% elif block.block_type == 'heading' %}

{{ block.value }}

{% endif %} {% endfor %}
{% endif %} {% if most_recent_tip and your_tip.get_number_of_tips %}

{% trans "Most recent tip" %}

{% if settings.core.SiteSettings.enable_clickable_tags %} {% if most_recent_tip.tags_list|first %}
{% if most_recent_tip.image %} {% image most_recent_tip.image width-20 jpegquality-70 as yourtips_article_icon %} {% endif %} {% for tag in most_recent_tip.tags_list %} {% if forloop.first %} {{tag}} {% endif %} {% endfor %}
{% endif %} {% endif %} {% for block in most_recent_tip.body %} {% if block.block_type == 'paragraph' %}

{{ block.value }}

{% elif block.block_type == 'heading' %}

{{ block.value }}

{% endif %} {% endfor %}
{% trans "See more Tips" %} {% endif %}
{% endblock %}