# {{ self::t!("search") }}
{%- for event in meta_events.iter() %}
{%- let npub = event.pubkey.to_bech32().unwrap() %}
{%- if let Ok(meta) = Metadata::try_from(*event) %}
{%- if let Some(name) = meta.name && !name.is_empty() %}
=> /p/{{npub}} {{name}}
{%- else if let Some(display_name) = meta.display_name && !display_name.is_empty() %}
=> /p/{{npub}} {{display_name}}
{%- else %}
=> /p/{{npub}} {{npub}}
{%- endif %}
{%- endif %}
{%- endfor %}
