{# prev/next are not set for drafts #} {% set post = ablog[pagename] %} {% if post.published %} {% endif %}