{# Heading with anchor link #} {% macro anchor_heading(content, size="2") %} {{ content }} {% endmacro anchor_heading %} {# Contact list item #} {% macro contact(classes, link) %} {% endmacro contact %} {# Styling for authors in publication list #} {% macro author(name) %} {%- if name == "Rachit Nigam" -%} {{ name }} {%- else -%} {% set_global link = "" %} {% for author in config.extra.author %} {% if author.name == name %} {% set_global link = author.link %} {% endif %} {% endfor %} {%- if link != "" -%} {%- endif -%} {{ name }} {%- if link != "" -%} {%- endif -%} {%- endif -%} {% endmacro author %} {# Styling for Posts #} {% macro generate_post(post) %}
{{ post.date | date(format="%b ’%y") }}
{% if post.extra.external %} {% else %} {% endif %} {{ post.title | safe }}
{{ post.extra.summary }}
{% endmacro post %} {# Styling for News items #} {% macro generate_news(post) %}
{{ post.date | date(format="%b ’%y") }}
{{ post.content | safe }}
{% endmacro post %}