aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
blob: bfaaaaee0270f98d82c6a6d9b9c137a91782ac3b (plain)
1
2
3
4
5
6
7
8
9
10
{% macro title(page) %}
<h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
<span>{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind="categories", name=cat) | safe }}">{{ cat }}</a>{% endfor %}]{% endif %}</span>
{% if page.taxonomies.tags %}
  <span>{% for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a> {% endfor %}</span>
{% endif %}
{% endmacro title %}
{% macro footer(page) %}
<h3><a href="#">Back to top</a></h3>
{% endmacro footer %}