{# An audio link template for including elsewhere. Eventually this will be enabled by default. #} {%- import "lexicon.macros" as macros with context -%} {% set has_audio = lexicon_entry|xpath('./lg/audio')|length > 0 %} {%- if has_audio -%} {%- set audio = lexicon_entry|xpath('./lg/audio/a') %}