public function getYears()
    {
        $years = array();

        foreach ($this->getAllByPostType('post') as $post) {
            $year = (int) $post->getPublishedDate()->format('Y');

            if (!in_array($year, $years)) {
                $years[] = $year;
            }
        }

        rsort($years);

        return $years;
    }