{% if show_pinned_icon %} {% if show_title %} {# Do nothing, the pinned icon will be on the title #} {% else %}
{% endif %} {% endif %} {% for key, meta_data in content %} {% if key == "show_pinned_icon" %} {# Do nothing, the pinned icon has already been handled. #} {% elseif key == "show_writer_image" %}
{% if show_labels %} <{{meta_data.html_tag}}> {{meta_data.label}} {% endif %} {{meta_data.Writer_Alt}}
{% elseif key == "show_featured_image" %}
{% if show_labels %} <{{meta_data.html_tag}}> {{meta_data.label}} {% endif %} {{meta_data.Featured_Image_HTML}} {% if meta_data.Image_credit %} {{meta_data.Image_credit}} {% endif %}
{% elseif key == "show_categories" %}
<{{meta_data.html_tag}}> {% if show_labels %} {{meta_data.label}} {% endif %} {% for item in categories %} {% if item.Category_landing_page %} {% endif %} {{item.Category}} {% if item.Category_landing_page %} {% endif %} {% endfor %}
{% elseif key == "show_writer_profile" %}
{% if show_labels %} <{{meta_data.html_tag}}> {{meta_data.label}} {% endif %} {{meta_data.value}}
{% else %}
<{{meta_data.html_tag}} {% if meta_data.class == 'page_title' and show_pinned_icon %} class="pinned_icon" {% endif %}> {% if show_labels and meta_data.label %} {{meta_data.label}} {% endif %} {{meta_data.value}}
{% endif %} {% endfor %}