---
title: 'Page.active Not True?'
url: 'https://getgrav.org/forum/archive/page-active-not-true-t5438'
markdown: 'https://getgrav.org/forum/archive/page-active-not-true-t5438.md'
date: '2026-06-21'
description: 'I''m having trouble getting navigation links to get class="active" applied when I think it should be. My blog page is at "home", www.grav.dev in my case. When'
---

[Archive](https://getgrav.org/forum/archive)

#  Page.active Not True? 

  Started by Muut Archive 12 years ago · 7 replies · 840 views    

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2258 "Permalink") 

I'm having trouble getting navigation links to get `class="active"` applied when I think it should be.

My blog page is at "home", `www.grav.dev` in my case. When I'm on www.grav.dev my blog menu item doesn't get the active class applied.

In my `system.yaml` I have

```yaml
home:
  alias: '/blog'
```

And in `blog.md` I have

```yaml
title: Blog
blog_url: blog
```

What have I missed?

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2259 "Permalink") 

I'm using the check logic from the antimatter theme:

```twig
{% set current_page = (page.active or page.activeChild) ? 'active' : '' %}
<li class="{{ current_page }}">
   <a href="{{ page.url }}">{{ page.menu|title }}</a>
</li>
```

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2260 "Permalink") 

Sorry removed my reply. I debugged this and had no problems. I think this could be your cache issue again. While working in development you might just want to turn caching off.

Try clearing cache and see if that fixes it for you.

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2261 "Permalink") 

OK, it's working. And it seems as if it was a caching problem somewhere. I disabled Grav's caching for my development environment like this:

```yaml
cache:
  enabled: false

twig:
  cache: false
```

And I cleared the caches, both Grav's and CodeKit's. I'm working to find out if and how I can disable CodeKit's caching. I like CodeKit and use it to handle SASS (compiling to the folders I want) as well as Bourbon and Neat. I know there are other ways, but...

Let's see if that keeps working.

Thanks!

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2262 "Permalink") 

CodeKit is great, but it's totally overkill for Grav. I can walk you through doing it without CodeKit in about 2 mins. Hop on IRC today and we can do that. That will ease your burdens :)

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2263 "Permalink") 

I could get it going with Grunt and LiveReload. But are you thinking of something else?

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2264 "Permalink") 

Not even that complicated. You can just install sass for the command line (<http://sass-lang.com/install>). One liner on mac, and pretty easy even on windows. Then you can just *watch* and *automatically* compile with a single line in your console/terminal:

```
scss --watch scss:css-compiled
```

We even have a script (`.scss.sh`) in the antimatter folder so you don't even need to remember this.

You don't really need any kind of live reload as Grav is so fast anyway, but you can even use a simple JS based reload like [CSS Refresh](http://cssrefresh.frebsite.nl/) to automatically reload your browser when it detects a change to the compiled CSS file.

This is all I ever use.

 [12 years ago](https://getgrav.org/forum/archive/page-active-not-true-t5438#post-2265 "Permalink") 

I know, I know. :)

But CodeKit offers so many creature comforts:

It's server refreshes pages automatically for all devices and browsers on the page so you can see what changes look like in many situations at one.

It manages updates to SCSS, Bourbon, Neat, etc. within itself.

It post processes with autoprefixer.

It's nice graphical interface let's you manage language options. So I have Sass compiled with my settings into my folder structure.

It's release notes are entertaining to read! :)

[Log in](https://getgrav.org/login?return=%2Fforum%2Farchive%2Fpage-active-not-true-t5438) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [About the Archive category](https://getgrav.org/forum/archive/about-the-archive-category-t6942)    [Archive](https://getgrav.org/forum/archive) · by Deleted User, 9 years ago |  | 0 | 2939 | [9 years ago](https://getgrav.org/forum/archive/about-the-archive-category-t6942 "by Deleted User") |
| [Hey buddies!](https://getgrav.org/forum/archive/hey-buddies-t643)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 1910 | [9 years ago](https://getgrav.org/forum/archive/hey-buddies-t643 "by Muut Archive") |
| [There is a way to do a "if condition" in MD page?](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 5247 | [9 years ago](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377 "by Muut Archive") |
| [Official docker image of grav (+admin +gitsync)](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 1 | 4064 | [9 years ago](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519 "by Muut Archive") |
| [Weird Grav + caddy + iOS + https problem](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 3 | 2000 | [9 years ago](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837 "by Muut Archive") |
