{# This is the main entry template that is called each time in the loop of main page entry results. Variables are passed in for the `lexicon_entry`, and morphological `analyses`. Some of the work here is sent out to `definition.template`. If you need to override this template, keep in mind that there is a somewhat specific structure as relates to Twitter Bootstrap, however the freedom that is available is that everything must be within:
#} {%- import "lexicon.macros" as macros with context -%}
{% if lexicon_entry|count > 0 %} {# NB: this is for lexc, not pronunciation {% set pronunciation = lexicon_entry.xpath('lg/stg/st/text()')|first %} #} {% set pronunciation = false %} {%- set first_l = lexicon_entry|xpath('lg/l/text()')|first %} {% if first_l and pronunciation %} {% set show_pronunciation = first_l != pronunciation %} {% else %} {% set show_pronunciation = false %} {% endif %} {% set has_reference = lexicon_entry.xpath('./lg/lemma_ref/text()')|first %}
{% if current_pair_settings.asynchronous_paradigms %} {{- rendered_templates.asynchronous_paradigm -}} {% else %} {{- rendered_templates.paradigm -}} {% endif %}

{{- rendered_templates.entry_text -}} {% if show_pronunciation %} [{{ pronunciation }}] {% endif %}

    {{- rendered_templates.definition -}}
{%- set lemma_key = lexicon_entry|xpath('lg/l')|first|text %}
{% if current_pair_settings.asynchronous_paradigms %} {{- rendered_templates.asynchronous_paradigm -}} {% else %} {{- rendered_templates.paradigm -}} {% endif %}
{% else %} {% endif %}
{{- rendered_templates.analyses -}}
{# vim: set ts=4 sw=4 tw=72 syntax=jinja : #}