{# Generate a list of linked tag. #} {% macro tags_list(tags, inline=False, add_hash=False, count=False) -%} {%- if inline -%} {%- else -%}
{%- endif -%} {%- for tag in tags -%} {% if add_hash %}#{% endif %}{{ tag.name }} {%- if count -%}  - {{ tag.count }} {%- endif -%} {%- if not loop.last %}, {% endif %} {%- endfor -%} {% if inline -%} {%- else -%}
{%- endif -%} {%- endmacro -%} {# Inserts Google Analytics code. This code is derived from the Octopress template, https://github.com/imathis/octopress #} {% macro google_analytics(id) -%} {%- endmacro -%} {# Inserts Disqus comments. #} {% macro disqus_comments(id) -%}
comments powered by Disqus {%- endmacro -%} {# Disqus comments counter to be included before "". Quoting disqus.com: Append #disqus_thread to the href attribute in your links. This will tell Disqus which links to look up and return the comment count. For example: Link #} {% macro disqus_counter(id) -%} {%- endmacro -%} {# Inserts AddThis sharing buttons. This code is generated by https://addthis.com. #} {% macro addthis(id, url) -%} {%- endmacro -%} {# Pluso.ru sharing buttons. #} {% macro pluso(url) -%}
{%- endmacro -%} {# Insert image defined by id. #} {% macro img(id) %} {{ id|image() }} {% endmacro %}