{% macro render_text(item) -%} {% if item.rich_text %}
{%- for segment in item.rich_text -%}{%- if segment.emoji_url -%}{{ segment.text }}{%- else -%}{{ segment.text }}{%- endif -%}{%- endfor -%}
{% elif item.text %}
{{ item.text }}
{% endif %} {%- endmacro %} {% macro render_images(item) -%} {% set item_images = item.images[:9] if item.images else ([item.cover] if item.cover else []) %} {% set dimensions = item.image_dimensions[:9] if item.image_dimensions else [] %} {% if item_images %}
{% for image in item_images %}{% set dimension = dimensions[loop.index0] if loop.index0 < dimensions|length else none %}{% set is_long = item_images|length > 1 and dimension and dimension[0] > 0 and dimension[1] >= dimension[0] * 3 %}
动态图片 {{ loop.index }}{% if is_long %}长图{% endif %}
{% endfor %}
{% endif %} {%- endmacro %}
动态更新
{{ content.id }}
{% if content.author_avatar %}{% endif %}
{{ content.author_name }}
{% if content.published_text %}
{{ content.published_text }}
{% endif %}
{% if content.title and content.title != "发布了新动态" %}

{{ content.title }}

{% endif %} {{ render_text(content) }} {{ render_images(content) }} {% if content.forward %}
{% if content.forward.author_avatar %}{% endif %}
@{{ content.forward.author_name }}
{% if content.forward.title and content.forward.title != "发布了新动态" %}

{{ content.forward.title }}

{% endif %} {{ render_text(content.forward) }} {{ render_images(content.forward) }}
{% endif %}