{% if page.next.url %}
{% if page.next.category == "blog" %} {% assign next_type = "Blog Post" %} {% elsif page.next.category == "video" %} {% assign next_type = "Video" %} {% elsif page.next.category == "podcast" %} {% assign next_type = "Podcast" %} {% endif %}
Next {{ next_type }}
{{ page.next.title }}
{% endif %} {% if page.previous.url %}
{% if page.previous.category == "blog" %} {% assign previous_type = "Blog Post" %} {% elsif page.previous.category == "video" %} {% assign previous_type = "Video" %} {% elsif page.previous.category == "podcast" %} {% assign previous_type = "Podcast" %} {% endif %}
Previous {{ previous_type }}
{{ page.previous.title }}
{% endif %}