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