# Is there a way to style the "Latest" page and "Top" page separately?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-style-the-latest-page-and-top-page-separately/219365>\
**Category:** Product Support\
**Created:** [February 25, 2022, 8:55am UTC](https://meta.discourse.org/t/is-there-a-way-to-style-the-latest-page-and-top-page-separately/219365 "2022-02-25T08:55:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
**Post date:** [February 25, 2022, 10:21am UTC](https://meta.discourse.org/t/is-there-a-way-to-style-the-latest-page-and-top-page-separately/219365/2 "2022-02-25T10:21:44Z")

</div>

You can add a custom class or do whatever based on route (`discovery.top`, `discovery.latest`). The central block would be sth like

```plaintext
@discourseComputed("router.currentRouteName")
  canDisplay(currentRouteName) {
    if (currentRouteName === `discovery.top`) {
       ...
    }

```

But would love to hear if there’s a solution that doesn’t involve a custom script.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-style-the-latest-page-and-top-page-separately/219365)._
