Return true if front page

Topics: Themes
Jul 30, 2012 at 10:33 PM

Using Razor theme. I would like to change some html on the template if the page is the front page. but I am not sure how to get that value.

Something like

           @if (isFrontPage)
            {
            <div class="content-inner-home">
                <div class="node">
                    @RenderBody()
                </div>
            </div>
            }
            else
            {
            <div class="content-inner">
                <div class="node">
                    @RenderBody()
                </div>
            </div>
            }

Anyone have any idea?  Thanks