# Display the first page as Home

**URL:** <https://forum.getkirby.com/t/display-the-first-page-as-home/15432>\
**Category:** Questions\
**Tags:** v3\
**Created:** [August 28, 2019, 4:39pm UTC](https://forum.getkirby.com/t/display-the-first-page-as-home/15432 "2019-08-28T16:39:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsvt](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gsvt](https://forum.getkirby.com/u/gsvt)\
**Post date:** [August 28, 2019, 4:39pm UTC](https://forum.getkirby.com/t/display-the-first-page-as-home/15432/1 "2019-08-28T16:39:54Z")

</div>

The idea is to set page as Home page simply by dragging it to the top of the list in the panel.  
So in home.php I have:

```
<?= $pages->template('default')->first()-> ... ?>

```

I cannot find the way to render a page. How can I achieve it?

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [August 28, 2019, 4:44pm UTC](https://forum.getkirby.com/t/display-the-first-page-as-home/15432/2 "2019-08-28T16:44:23Z")

</div>

> **[home](https://getkirby.com/docs/reference/system/options/home)**
>
> Set the name of the home page folder

You can set a custom page as home like that:

```
return [
  'home' => 'blog'
];

```

The first page does not mean home.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 28, 2019, 5:17pm UTC](https://forum.getkirby.com/t/display-the-first-page-as-home/15432/3 "2019-08-28T17:17:46Z")

</div>

I’d use a route that renders the chosen page:

```auto
'routes' => [
    [
        'pattern' => '/',
        'action' => function() {
         if ( $page = 'define which page here') {  
             return $page->render();     
        }
        $this->next();
    ]
]

```

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [August 28, 2019, 6:53pm UTC](https://forum.getkirby.com/t/display-the-first-page-as-home/15432/4 "2019-08-28T18:53:36Z")

</div>

… or add a field in the home.yml to select that page and in the template home.php “go” to that page.
