% my $categories = stash 'categories'; % my $current_category_slug = stash 'current_category_slug'; % my $description_og = stash 'description_og'; % $description_og =~ s/\s+/ /g; % $description_og = substr $description_og, 0, 157; % $description_og =~ s/\s\S+$//; % $description_og.='...'; % my $base_url = config 'base_url'; % my $css_version = config 'css_version'; <%= title %> % my $ogimage = stash 'ogimage'; % my $user_agent = stash 'useragent'; % if (defined $ogimage) { % } else { % }
%= include 'page/_mobile_menu', categories => $categories
%= include 'page/_desktop_menu', categories => $categories, current_category_slug => $current_category_slug <%= content %>
%= include 'ads/_carousel'