summaryrefslogtreecommitdiff
path: root/handler/Index.php
blob: c85251144d6626aa88926db57f2af585f350c38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace handler;

use admin;
use posts;

class Index extends \RequestHandler {

    public function get(): \Response {
        $posts = posts::getPosts(include_hidden: admin::isAdmin());
        $tags = posts::getAllTags(include_hidden: admin::isAdmin());

        $this->skin->title = "ch1p's Blog";
        $this->skin->setOptions(['dynlogo_enabled' => false]);
        return $this->skin->renderPage('main/index',
            posts: $posts,
            tags: $tags);
    }
}