Much of his popularity is in the capital , where he resigned as mayor two weeks ago to pursue the presidency .