I have this in my main Page.ss, but I want to switch background depending on the layout using an if statement. Is this correct syntax? If not, what am I missing/doing wrong?
<% if $Layout = HomePage %>
<link href="/themes/ofarm/css/homepage.css" rel="stylesheet" type="text/css" />
<% else %>
<link href="/themes/ofarm/css/page.css" rel="stylesheet" type="text/css" />
<% end if %>