{% capture tags %}
{% if post %}
{% for tag in post.tags %}
{{ tag | join: "/" }}{% unless forloop.last %} {% endunless %}
{% endfor %}
{% else %}
{% for tag in page.tags %}
{{ tag | join: "/" }}{% unless forloop.last %} {% endunless %}
{% endfor %}
{% endif %}
{% endcapture %}
{{ tags }}