Skip to content

Instantly share code, notes, and snippets.

@0test
Last active May 25, 2023 12:35
Show Gist options
  • Save 0test/f8c0ad96075efedf18a571821705a169 to your computer and use it in GitHub Desktop.
Save 0test/f8c0ad96075efedf18a571821705a169 to your computer and use it in GitHub Desktop.
<item turbo="true">
<turbo:extendedHtml>true</turbo:extendedHtml>
<title>{{ title }}</title>
<link>{{ link }}</link>
<description>{{ description }}</description>
{% for item in item_elements -%}
{% if item.key == 'yandex:full-text' %}
<turbo:content>
<![CDATA[
{{ item.value }}
]]>
</turbo:content>
{% else %}
<{{item.key}}{{item.attributes-}} {% if item.value -%}>{{ item.value }}</{{item.key}}>
{% else -%}
{{ ' />' }}
{% endif %}
{% endif %}
{%- endfor %}
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment