{% macro feed_link(feed) -%} {%- if feed.link %}{%- endif -%} {{ feed_title(feed) }} {%- if feed.link %}{% endif -%} {%- endmacro %} {% macro feed_title(feed) %} {%- if feed.user_title and feed.user_title.strip() -%} {{ feed.user_title }} {%- elif feed.title and feed.title.strip() -%} {{ feed.title }} {%- else -%} {{ feed.url }} {%- endif -%} {% endmacro %} {% macro feed_title_secondary(feed) %} {%- if feed.user_title and feed.user_title.strip() and feed.title and feed.title.strip() -%} {{ feed.title }} {%- endif -%} {% endmacro %} {% macro entry_content(entry) %} {%- set content = ( ( entry.content | selectattr('type', 'equalto', 'text/html') | first ) or ( entry.content | selectattr('type', 'equalto', 'text/xhtml') | first ) or ( entry.content | selectattr('type', 'equalto', 'text/plain') | first ) ) -%} {%- if content -%} {%- if content.type == 'text/plain' -%}
{{ content.value }}{%- else -%} {{ content.value | safe }} {%- endif -%} {%- endif -%} {% endmacro %} {% macro entry_enclosures(entry) %} {% if entry.enclosures %}
{%- for avg in counts.averages -%}
{{- blocks.get((avg | log_scale(2) * 8) | int, blocks[7]) -}}
{%- endfor -%}
{% endmacro %}