{% macro slug(res) %}
{{ res.meta.id if res.meta.id else res.slug }}{% endmacro %}
{% macro itemurl(res) %}
{{ res.url ~ "#" ~ (res.meta.id if res.meta.id else res.slug) ~ "-title" }}{% endmacro %}
{% macro fullurl(part) %}
{{ site.context.scheme_host ~ part }}{% endmacro %}
{# endmacro not on new line to prevent white space at end of macro #}
{% macro render_excerpt(res, class=None) %}
{% refer to res.relative_path as post %}