[[*alias:is=`home`:then=`[[$pagetitle]]`]]
[[!*alias:is=`1`:then=`[[$pagetitle]]`]]
[[*alias:isnot=`home`:then=`[[$pagetitle]]`:else=``]]
[[*id:isnot=`1`:then=`[[*pagetitle]]`:else=``]]
[[*id:is=`1`:then=``:else=`[[*pagetitle]]`]]
what is the content of your chunk 'pagetitle' ?
and you should allways use :else ,when using conditionals!
[[*alias:isnot=`home`:then=`[[$pagetitle]]`:else=``]]
[[*id:isnot=`1`:then=`[[*pagetitle]]`:else=``]]
[[*id:is=`1`:then=``:else=`[[*pagetitle]]`]]
<h2 class="text-center">[[+pagetitle]]</h2>
[[getResources? &parents=`0` &limit=`10` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &tpl=`pages_block` &sortdir=`ASC` &sortby=`{"menuindex":"ASC"}`]] [[+id:isnot=`1`:then=`<h2 class="text-center">[[+pagetitle]]</h2>`:else=``]]
using this inside a getResources template should be
[[+id:isnot=`1`:then=`<h2 class="text-center">[[+pagetitle]]</h2>`:else=``]]