{%- macro link_alternate(filename, title) -%} {%- if filename is ending_with("atom.xml") -%} {%- set type = 'type="application/atom+xml" ' -%} {%- elif filename is ending_with("rss.xml") -%} {%- set type = 'type="application/rss+xml" ' -%} {%- elif filename is ending_with(".json") -%} {%- set type = 'type="application/feed+json" ' -%} {%- endif -%} {%- endmacro -%}