{% extends 'includes/layout.swig' %} {% macro PostTags(post) %}
{% for k in Object.keys(post.tags.data) %}
{{post.tags.data[k].name}}
{% endfor %}
{% endmacro %} {% macro PostList(posts) %} {% endmacro %} {% macro MeCard(name, email, description) %}
{% if email %}
{% else %}
{% endif %}
{% if name %}
{{ name }}
{% endif %}

{%if description %}{{description}}{% else %}Nothing to say.{%endif%}

{% endmacro %} {% macro TagPanel(tags) %}
Tags {% for tag in tags %}
{{tag.name}}
{% endfor %}
{% endmacro %} {% import "includes/paginator.swig" as P%} {% block body %}
{% if page.current == 1 %} {{ MeCard(config.author, config.email, config.description) }} {% endif %} {% if page.posts.length > 0 %} {{ PostList(page.posts.toArray()) }} {% else %} No Post Here... {% endif %}
{{ P.Paginiation() }}
{{ TagPanel(site.tags) }}
{% endblock %} {% block add_head %} {% endblock %}